Last active
August 31, 2018 19:00
-
-
Save ldmarz/120b576bafbf409fec5613c981b656a0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import ngRedux from 'ng-redux'; | |
import { combineReducers } from 'redux'; // Usefull function to combine multiple reducers | |
import reducers from './redux/reducers/'; | |
angular | |
.module('app', [ngRedux]) | |
.config(($ngReduxProvider) => { | |
let reducer = combineReducers(reducers); | |
$ngReduxProvider.createStoreWith(reducer); // Aditionally here we can add middlewares like redux-logger | |
}) | |
.run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment