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
628 B
JavaScript
31 lines
628 B
JavaScript
// #docplaster
|
|
// #docregion
|
|
import { Component } from '@angular/core';
|
|
// #enddocregion
|
|
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
// #docregion
|
|
class HeroComponent {
|
|
ngOnInit() {
|
|
this.name = 'Windstorm';
|
|
}
|
|
}
|
|
// #enddocregion
|
|
|
|
HeroComponent.annotations = [
|
|
new Component({
|
|
selector: 'hero-lifecycle',
|
|
template: `<h1>Hero: {{name}}</h1>`
|
|
})
|
|
];
|
|
|
|
export class HeroesLifecycleModule { }
|
|
|
|
HeroesLifecycleModule.annotations = [
|
|
new NgModule({
|
|
imports: [ BrowserModule ],
|
|
declarations: [ HeroComponent ],
|
|
bootstrap: [ HeroComponent ]
|
|
})
|
|
]; |