File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ import * as CounterActions from '../actions/CounterActions';
5151
5252class CounterApp {
5353 constructor ( @Inject (' ngRedux' ) ngRedux ) {
54- this .unsubscribe = ngRedux .connect (this .mapStateToScope , this .mapDispatchToProps )(this );
54+ this .unsubscribe = ngRedux .connect (this .mapStateToThis , this .mapDispatchToThis )(this );
5555 }
5656
5757 onInit () {}
@@ -60,13 +60,13 @@ class CounterApp {
6060 this .unsubscribe ();
6161 }
6262
63- mapStateToScope (state ) {
63+ mapStateToThis (state ) {
6464 return {
6565 counter: state .counter
6666 };
6767 }
6868
69- mapDispatchToProps (dispatch ) {
69+ mapDispatchToThis (dispatch ) {
7070 return { actions: bindActionCreators (CounterActions, dispatch) };
7171 }
7272}
@@ -94,7 +94,7 @@ Connects an Angular component to Redux.
9494
9595e.g:
9696``` JS
97- connect (this .mapState , this .mapDispatch )(this );
97+ connect (this .mapStateToThis , this .mapDispatchToThis )(this );
9898// Or
9999connect (this .mapState , this .mapDispatch )((selectedState , actions ) => {/* ... */ });
100100```
You can’t perform that action at this time.
0 commit comments