Created
July 2, 2018 18:32
-
-
Save roelofjan-elsinga/ee2c38601fb2d6b4cad5a9e6156ab4d6 to your computer and use it in GitHub Desktop.
Initialize ng-redux in AngularJS with an existing store
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 * as angular from 'angular'; | |
import ngRedux from 'ng-redux'; | |
import {store} from "../../app/redux"; | |
angular.module('config.redux', [ngRedux]) | |
.config(['$ngReduxProvider', $ngReduxProvider => { | |
$ngReduxProvider.provideStore(store); | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment