update docshredder to shred .es6 optimized focus gulp task convert imports and metadate sections add DI section add host and query metadata section add intro fix capitalization and grammar
34 lines
692 B
JavaScript
34 lines
692 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
|
|
|
|
app.HeroesDIModule =
|
|
ng.core.NgModule({
|
|
imports: [ ng.platformBrowser.BrowserModule ],
|
|
providers: [ app.DataService ],
|
|
declarations: [ HeroComponent ],
|
|
bootstrap: [ HeroComponent ]
|
|
})
|
|
.Class({
|
|
constructor: function() {}
|
|
});
|
|
|
|
})(window.app = window.app || {});
|