File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ npm install --save ng-redux
31
31
import reducers from ' ./reducers' ;
32
32
import { combineReducers } from ' redux' ;
33
33
import loggingMiddleware from ' ./loggingMiddleware' ;
34
- import ' ng-redux' ;
34
+ import ngRedux from ' ng-redux' ;
35
35
36
- angular .module (' app' , [' ngRedux' ])
36
+ angular .module (' app' , [ngRedux])
37
37
.config (($ngReduxProvider ) => {
38
38
let reducer = combineReducers (reducers);
39
39
$ngReduxProvider .createStoreWith (reducer, [' promiseMiddleware' , loggingMiddleware]);
Original file line number Diff line number Diff line change 1
- import 'angular' ;
2
- import 'ng-redux' ;
1
+ import angular from 'angular' ;
2
+ import ngRedux from 'ng-redux' ;
3
3
import rootReducer from './reducers' ;
4
4
import thunk from 'redux-thunk' ;
5
5
import counter from './components/counter' ;
6
6
import { devTools } from 'redux-devtools' ;
7
7
8
- angular . module ( 'counter' , [ ' ngRedux' ] )
8
+ angular . module ( 'counter' , [ ngRedux ] )
9
9
. config ( ( $ngReduxProvider ) => {
10
- $ngReduxProvider . createStoreWith ( rootReducer , [ thunk ] , [ devTools ( ) ] ) ;
11
- } )
10
+ $ngReduxProvider . createStoreWith ( rootReducer , [ thunk ] , [ devTools ( ) ] ) ;
11
+ } )
12
12
. directive ( 'ngrCounter' , counter ) ;
You can’t perform that action at this time.
0 commit comments