Created
August 18, 2017 12:31
-
-
Save matthieu-D/aa6147e34aa318232c7b9552b5f93a7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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