We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 793ba48 commit 72c26baCopy full SHA for 72c26ba
examples/counter/components/counter.js
@@ -13,12 +13,12 @@ export default function counter() {
13
class CounterController {
14
15
constructor($ngRedux, $scope) {
16
- const unsubscribe = $ngRedux.connect(this.mapStateToScope, CounterActions)(this);
+ const unsubscribe = $ngRedux.connect(this.mapStateToThis, CounterActions)(this);
17
$scope.$on('$destroy', unsubscribe);
18
}
19
20
- // Which part of the Redux global state does our component want to receive on $scope?
21
- mapStateToScope(state) {
+ // Which part of the Redux global state does our component want to receive?
+ mapStateToThis(state) {
22
return {
23
counter: state.counter
24
};
0 commit comments