closes #1070 Separates UpgradeAdapter reference guide examples from the PhoneCat tutorial examples and update dependencies for phonecat upgrade examples
18 lines
362 B
TypeScript
18 lines
362 B
TypeScript
// #docregion
|
|
export const heroDetail = {
|
|
bindings: {
|
|
hero: '=',
|
|
deleted: '&'
|
|
},
|
|
template: `
|
|
<h2>{{$ctrl.hero.name}} details!</h2>
|
|
<div><label>id: </label>{{$ctrl.hero.id}}</div>
|
|
<button ng-click="$ctrl.onDelete()">Delete</button>
|
|
`,
|
|
controller: function() {
|
|
this.onDelete = () => {
|
|
this.deleted(this.hero);
|
|
};
|
|
}
|
|
};
|