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
31 lines
665 B
JavaScript
31 lines
665 B
JavaScript
// #docplaster
|
|
// #docregion appexport
|
|
(function(app) {
|
|
|
|
// #docregion component
|
|
var HeroComponent = ng.core.Component({
|
|
selector: 'hero-view-2',
|
|
template: '<h1>Name: {{getName()}}</h1>',
|
|
})
|
|
.Class({
|
|
constructor: function() {
|
|
},
|
|
getName: function() {
|
|
return 'Windstorm';
|
|
}
|
|
});
|
|
// #enddocregion component
|
|
|
|
app.HeroesDslModule =
|
|
ng.core.NgModule({
|
|
imports: [ ng.platformBrowser.BrowserModule ],
|
|
declarations: [ HeroComponent ],
|
|
bootstrap: [ HeroComponent ]
|
|
})
|
|
.Class({
|
|
constructor: function() {}
|
|
});
|
|
|
|
})(window.app = window.app || {});
|
|
// #enddocregion appexport
|