29 lines
667 B
TypeScript
29 lines
667 B
TypeScript
// #docregion
|
|
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { HeroDetailComponent } from './hero-detail.component';
|
|
import { HeroesComponent } from './heroes.component';
|
|
import { HeroService } from './hero.service';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
FormsModule
|
|
],
|
|
declarations: [
|
|
AppComponent,
|
|
HeroDetailComponent,
|
|
HeroesComponent
|
|
],
|
|
providers: [
|
|
HeroService
|
|
],
|
|
bootstrap: [ AppComponent ]
|
|
})
|
|
export class AppModule {
|
|
}
|
|
// #enddocregion
|