Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created August 18, 2017 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/aa6147e34aa318232c7b9552b5f93a7d to your computer and use it in GitHub Desktop.
Save matthieu-D/aa6147e34aa318232c7b9552b5f93a7d to your computer and use it in GitHub Desktop.
export class HomePage {
@select() readonly colorList$: Observable<ColorListState>;
constructor( public store: NgRedux<ColorListState>, public colorActions: ColorActions, public devTools: DevToolsExtension) {
store.configureStore(
colorReducer,
INITIAL_STATE,
[ reduxLogger.createLogger()],
devTools.isEnabled() ? [ devTools.enhancer() ] : []);
colorActions.loadColors();
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment