NetanelBasal
4/30/2017 - 7:33 PM

app-logger.module.ts

import { compose } from "@ngrx/core";

function todosReducer(state, action) { ... }
function postsReducer(state, action) { ... }

const reducers = { todos: todosReducer, posts: postsReducer };

@NgModule({
  ...
  imports: [
    ...
    StoreModule.provideStore(compose(logger, combineReducers)(reducers)),
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
}