You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -101,9 +116,9 @@ import * as CounterActions from '../actions/counter';
101
116
102
117
classCounterController {
103
118
constructor($ngRedux, $scope) {
104
-
/* ngRedux will merge the requested state's slice and actions onto this,
119
+
/* ngRedux will merge the requested state's slice and actions onto this,
105
120
you don't need to redefine them in your controller */
106
-
121
+
107
122
let unsubscribe =$ngRedux.connect(this.mapStateToThis, CounterActions)(this);
108
123
$scope.$on('$destroy', unsubscribe);
109
124
}
@@ -133,7 +148,7 @@ class CounterController {
133
148
134
149
Creates the Redux store, and allow `connect()` to access it.
135
150
136
-
#### Arguments:
151
+
#### Arguments:
137
152
*`reducer`\(*Function*): A single reducer composed of all other reducers (create with redux.combineReducer)
138
153
*[`middlewares`]\(*Function[]*): Optional, An array containing all the middleware that should be applied. Functions and strings are both valid members. String will be resolved via Angular, allowing you to use dependency injection in your middlewares.
139
154
*[`storeEnhancers`]\(*Function[]*): Optional, this will be used to create the store, in most cases you don't need to pass anything, see [Store Enhancer official documentation.](https://github.com/reactjs/redux/blob/master/docs/Glossary.md#store-enhancer)
@@ -152,7 +167,7 @@ Connects an Angular component to Redux.
152
167
*`target`\(*Object* or *Function*): If passed an object, the results of `mapStateToTarget` and `mapDispatchToTarget` will be merged onto it. If passed a function, the function will receive the results of `mapStateToTarget` and `mapDispatchToTarget` as parameters.
@@ -228,7 +243,7 @@ See [redux-ui-router](https://github.com/neilff/redux-ui-router) to make ng-redu
228
243
See [ng-redux-router](https://github.com/amitport/ng-redux-router) to make ng-redux and angular-route work together.
229
244
230
245
## Using DevTools
231
-
There are two options for using Redux DevTools with your angular app. The first option is to use the [redux-devtools package] (https://www.npmjs.com/package/redux-devtools),
246
+
There are two options for using Redux DevTools with your angular app. The first option is to use the [redux-devtools package] (https://www.npmjs.com/package/redux-devtools),
232
247
and the other option is to use the [Redux DevTools Extension] (https://github.com/zalmoxisus/redux-devtools-extension#usage). The Redux DevTools Extension does not
233
248
require adding the react, react-redux, or redux-devtools packages to your project.
0 commit comments