3: Create a Feature Component
[examples/angular-tour-of-heroes] / src / app / app.module.ts
1 import { BrowserModule } from '@angular/platform-browser';
2 import { NgModule } from '@angular/core';
3 import { FormsModule } from '@angular/forms';
4
5 import { AppComponent } from './app.component';
6 import { HeroesComponent } from './heroes/heroes.component';
7 import { HeroDetailComponent } from './hero-detail/hero-detail.component';
8
9 @NgModule({
10   declarations: [
11     AppComponent,
12     HeroesComponent,
13     HeroDetailComponent
14   ],
15   imports: [
16     BrowserModule,
17     FormsModule
18   ],
19   providers: [],
20   bootstrap: [AppComponent]
21 })
22 export class AppModule { }