2017-01-04 13:59:19 -08:00
|
|
|
import { NgModule } from '@angular/core';
|
2016-08-09 17:38:25 +01:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
2017-01-04 13:59:19 -08:00
|
|
|
import { RouterModule } from '@angular/router';
|
2016-08-09 17:38:25 +01:00
|
|
|
|
2017-01-04 13:59:19 -08:00
|
|
|
import { AppComponent } from './app.component';
|
2016-08-09 17:38:25 +01:00
|
|
|
import { HeroesComponent } from './heroes';
|
2017-01-04 13:59:19 -08:00
|
|
|
import { HeroService } from './heroes/shared';
|
2016-08-09 17:38:25 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
RouterModule.forChild([{ path: '05-04', component: AppComponent }])
|
|
|
|
],
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
HeroesComponent
|
|
|
|
],
|
2017-01-04 13:59:19 -08:00
|
|
|
exports: [ AppComponent ],
|
|
|
|
providers: [ HeroService ]
|
2016-08-09 17:38:25 +01:00
|
|
|
})
|
|
|
|
export class AppModule {}
|