2017-01-01 00:25:52 -08:00
|
|
|
// #docplaster
|
2016-08-09 17:38:25 +01:00
|
|
|
// #docregion
|
2017-01-01 00:25:52 -08:00
|
|
|
// #docregion v1
|
2016-08-09 17:38:25 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
|
|
|
|
|
|
import { HeroListComponent } from './hero-list.component';
|
|
|
|
|
import { HeroDetailComponent } from './hero-detail.component';
|
|
|
|
|
|
|
|
|
|
import { HeroService } from './hero.service';
|
|
|
|
|
|
2017-01-01 00:25:52 -08:00
|
|
|
// #enddocregion v1
|
2016-10-05 16:59:09 -05:00
|
|
|
import { HeroRoutingModule } from './heroes-routing.module';
|
2016-08-09 17:38:25 +01:00
|
|
|
|
2017-01-01 00:25:52 -08:00
|
|
|
// #docregion v1
|
2016-08-09 17:38:25 +01:00
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
CommonModule,
|
|
|
|
|
FormsModule,
|
2017-01-01 00:25:52 -08:00
|
|
|
// #enddocregion v1
|
2016-10-05 16:59:09 -05:00
|
|
|
HeroRoutingModule
|
2017-01-01 00:25:52 -08:00
|
|
|
// #docregion v1
|
2016-08-09 17:38:25 +01:00
|
|
|
],
|
|
|
|
|
declarations: [
|
|
|
|
|
HeroListComponent,
|
|
|
|
|
HeroDetailComponent
|
|
|
|
|
],
|
2017-01-01 00:25:52 -08:00
|
|
|
providers: [ HeroService ]
|
2016-08-09 17:38:25 +01:00
|
|
|
})
|
|
|
|
|
export class HeroesModule {}
|
2017-01-01 00:25:52 -08:00
|
|
|
// #enddocregion v1
|
2016-08-09 17:38:25 +01:00
|
|
|
// #enddocregion
|