Skip to content

Commit 72c26ba

Browse files
committed
Fix the mapping state from the counter example
1 parent 793ba48 commit 72c26ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/counter/components/counter.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ export default function counter() {
1313
class CounterController {
1414

1515
constructor($ngRedux, $scope) {
16-
const unsubscribe = $ngRedux.connect(this.mapStateToScope, CounterActions)(this);
16+
const unsubscribe = $ngRedux.connect(this.mapStateToThis, CounterActions)(this);
1717
$scope.$on('$destroy', unsubscribe);
1818
}
1919

20-
// Which part of the Redux global state does our component want to receive on $scope?
21-
mapStateToScope(state) {
20+
// Which part of the Redux global state does our component want to receive?
21+
mapStateToThis(state) {
2222
return {
2323
counter: state.counter
2424
};

0 commit comments

Comments
 (0)