21 lines
415 B
JavaScript
21 lines
415 B
JavaScript
(function(app) {
|
|
|
|
// #docregion
|
|
app.HeroDIComponent = HeroComponent;
|
|
|
|
function HeroComponent(dataService) {
|
|
this.name = dataService.getHeroName();
|
|
}
|
|
HeroComponent.parameters = [
|
|
app.DataService
|
|
];
|
|
HeroComponent.annotations = [
|
|
new ng.core.Component({
|
|
selector: 'hero-di',
|
|
template: '<h1>Hero: {{name}}</h1>'
|
|
})
|
|
];
|
|
// #enddocregion
|
|
|
|
})(window.app = window.app || {});
|