Skip to content

Commit 4fe3a07

Browse files
committed
Update README.md
1 parent bbc4bee commit 4fe3a07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ angular.module('app', ['ngRedux'])
4848
class TodoLoaderController {
4949

5050
constructor($ngRedux) {
51-
this.todos = [];
52-
$ngRedux.connect(state => ({todos: state.todos}), ({todos}) => this.todos = todos);
51+
$ngRedux.connect(state => ({todos: state.todos}), this);
5352
}
5453

5554
[...]

0 commit comments

Comments
 (0)