2015-12-31 08:46:32 +02:00
|
|
|
// #docregion
|
2016-11-12 15:27:51 +00:00
|
|
|
// #docregion hero-detail
|
2015-12-31 08:46:32 +02:00
|
|
|
export const heroDetail = {
|
|
|
|
template: `
|
|
|
|
<h2>Windstorm details!</h2>
|
|
|
|
<div><label>id: </label>1</div>
|
|
|
|
`,
|
|
|
|
controller: function() {
|
|
|
|
}
|
|
|
|
};
|
2016-11-12 15:27:51 +00:00
|
|
|
// #enddocregion hero-detail
|
2016-11-09 19:05:03 +00:00
|
|
|
|
2016-11-12 15:27:51 +00:00
|
|
|
// #docregion hero-detail-upgrade
|
2016-11-09 19:05:03 +00:00
|
|
|
import { Directive, ElementRef, Injector } from '@angular/core';
|
|
|
|
import { UpgradeComponent } from '@angular/upgrade/static';
|
|
|
|
|
|
|
|
@Directive({
|
|
|
|
selector: 'hero-detail'
|
|
|
|
})
|
2016-11-10 15:27:45 +00:00
|
|
|
export class HeroDetailDirective extends UpgradeComponent {
|
2016-11-09 19:05:03 +00:00
|
|
|
constructor(elementRef: ElementRef, injector: Injector) {
|
|
|
|
super('heroDetail', elementRef, injector);
|
|
|
|
}
|
|
|
|
}
|
2016-11-12 15:27:51 +00:00
|
|
|
// #enddocregion hero-detail-upgrade
|