2016-08-17 13:31:40 -07:00
|
|
|
// #docplaster
|
2016-08-09 17:38:25 +01:00
|
|
|
// #docregion
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
|
2016-08-17 20:28:22 -05:00
|
|
|
import { AppComponent } from './app.component';
|
2016-08-09 17:38:25 +01:00
|
|
|
import { DashboardComponent } from './dashboard.component';
|
|
|
|
import { HeroDetailComponent } from './hero-detail.component';
|
2016-08-17 20:28:22 -05:00
|
|
|
import { HeroesComponent } from './heroes.component';
|
|
|
|
import { HeroService } from './hero.service';
|
|
|
|
// #docregion routing
|
|
|
|
import { routing } from './app.routing';
|
2016-08-17 13:31:40 -07:00
|
|
|
// #docregion routing
|
2016-08-09 17:38:25 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
FormsModule,
|
|
|
|
routing
|
|
|
|
],
|
2016-08-17 13:31:40 -07:00
|
|
|
// #enddocregion routing
|
|
|
|
// #docregion dashboard, hero-detail
|
2016-08-09 17:38:25 +01:00
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
DashboardComponent,
|
2016-08-17 20:28:22 -05:00
|
|
|
HeroDetailComponent,
|
|
|
|
HeroesComponent
|
2016-08-09 17:38:25 +01:00
|
|
|
],
|
2016-08-17 13:31:40 -07:00
|
|
|
// #enddocregion dashboard, hero-detail
|
2016-08-09 17:38:25 +01:00
|
|
|
providers: [
|
|
|
|
HeroService
|
|
|
|
],
|
|
|
|
bootstrap: [ AppComponent ]
|
2016-08-17 13:31:40 -07:00
|
|
|
// #docregion routing
|
2016-08-09 17:38:25 +01:00
|
|
|
})
|
|
|
|
export class AppModule {
|
|
|
|
}
|