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
29 lines
626 B
JavaScript
29 lines
626 B
JavaScript
(function(app) {
|
|
// #docregion
|
|
var HeroComponent = ng.core.Component({
|
|
selector: 'hero-di-inline',
|
|
template: '<h1>Hero: {{name}}</h1>'
|
|
})
|
|
.Class({
|
|
constructor: [
|
|
app.DataService,
|
|
function(service) {
|
|
this.name = service.getHeroName();
|
|
}
|
|
]
|
|
});
|
|
// #enddocregion
|
|
|
|
app.HeroDIInlineModule =
|
|
ng.core.NgModule({
|
|
imports: [ ng.platformBrowser.BrowserModule ],
|
|
providers: [ app.DataService ],
|
|
declarations: [ HeroComponent ],
|
|
bootstrap: [ HeroComponent ]
|
|
})
|
|
.Class({
|
|
constructor: function() {}
|
|
});
|
|
|
|
})(window.app = window.app || {});
|