// #docregion export function heroDetailDirective() { return { restrict: 'E', scope: {}, bindToController: { hero: '=', deleted: '&' }, template: `

{{$ctrl.hero.name}} details!

{{$ctrl.hero.id}}
`, controller: function() { this.onDelete = () => { this.deleted({hero: this.hero}); }; }, controllerAs: '$ctrl' }; }