X-Git-Url: http://juplo.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fapp%2Fapp.module.ts;h=ccb148f85be7cff87ba22e072ba38886d842594b;hb=2221767df6737334e1a4c69b46722bb842f94823;hp=cffb82ad5984bc797b656a18c99b1e5991d28d57;hpb=681885aac6e28f9c5aa59aaa904b158001851387;p=examples%2Fangular-tour-of-heroes diff --git a/src/app/app.module.ts b/src/app/app.module.ts index cffb82a..ccb148f 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -12,6 +12,9 @@ import { HeroesComponent } from './heroes/heroes.component'; import { HeroDetailComponent } from './hero-detail/hero-detail.component'; import { MessagesComponent } from './messages/messages.component'; import { DashboardComponent } from './dashboard/dashboard.component'; +import { HeroSearchComponent } from './hero-search/hero-search.component'; +import { StoreModule } from '@ngrx/store'; +import { reducers, metaReducers } from './reducers'; @NgModule({ declarations: [ @@ -19,7 +22,8 @@ import { DashboardComponent } from './dashboard/dashboard.component'; HeroesComponent, HeroDetailComponent, MessagesComponent, - DashboardComponent + DashboardComponent, + HeroSearchComponent ], imports: [ BrowserModule, @@ -32,7 +36,11 @@ import { DashboardComponent } from './dashboard/dashboard.component'; // Remove it when a real server is ready to receive requests. HttpClientInMemoryWebApiModule.forRoot( InMemoryDataService, { dataEncapsulation: false } - ) + ), + + StoreModule.forRoot(reducers, { + metaReducers + }) ], providers: [], bootstrap: [AppComponent]