Skip to content

Commit 765663c

Browse files
committed
rename createRedux to provide
2 parents 9f02cca + 749885c commit 765663c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/counter/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import {bind} from 'angular2/di';
33
import {createStore, applyMiddleware} from 'redux';
44
import thunk from 'redux-thunk';
55
import {App} from './containers/App';
6-
import {createRedux} from 'ng2-redux';
6+
import {provide} from 'ng2-redux';
77
import {rootReducer} from './reducers';
88

99
const createStoreWithMiddleware = applyMiddleware(thunk)(createStore);
1010
const store = createStoreWithMiddleware(rootReducer);
1111

1212
bootstrap(
1313
App,
14-
[createRedux(store)]
14+
[provide(store)]
1515
);

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Connector from './connector';
22
import {bind, Injector} from 'angular2/di';
33
let redux = require('redux');
44

5-
export function createRedux(store) {
5+
export function provide(store) {
66
const _connector = new Connector(store);
77

88
return bind('ngRedux').toFactory(() => {

0 commit comments

Comments
 (0)