File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ import {bind} from 'angular2/di';
3
3
import { createStore , applyMiddleware } from 'redux' ;
4
4
import thunk from 'redux-thunk' ;
5
5
import { App } from './containers/App' ;
6
- import { createRedux } from 'ng2-redux' ;
6
+ import { provide } from 'ng2-redux' ;
7
7
import { rootReducer } from './reducers' ;
8
8
9
9
const createStoreWithMiddleware = applyMiddleware ( thunk ) ( createStore ) ;
10
10
const store = createStoreWithMiddleware ( rootReducer ) ;
11
11
12
12
bootstrap (
13
13
App ,
14
- [ createRedux ( store ) ]
14
+ [ provide ( store ) ]
15
15
) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Connector from './connector';
2
2
import { bind , Injector } from 'angular2/di' ;
3
3
let redux = require ( 'redux' ) ;
4
4
5
- export function createRedux ( store ) {
5
+ export function provide ( store ) {
6
6
const _connector = new Connector ( store ) ;
7
7
8
8
return bind ( 'ngRedux' ) . toFactory ( ( ) => {
You can’t perform that action at this time.
0 commit comments