Skip to content

Instantly share code, notes, and snippets.

@ldmarz
Last active August 31, 2018 19:00
Show Gist options
  • Save ldmarz/120b576bafbf409fec5613c981b656a0 to your computer and use it in GitHub Desktop.
Save ldmarz/120b576bafbf409fec5613c981b656a0 to your computer and use it in GitHub Desktop.
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