Skip to content

Commit 8a76f1c

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

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,14 @@ angular.module('app', ['ngRedux'])
3939
return {
4040
controllerAs: 'vm',
4141
controller: TodoLoaderController,
42-
template: "<div ng-repeat='todo in vm.todos'>{{todo.text}}</div>",
43-
44-
[...]
42+
template: "<div ng-repeat='todo in vm.todos'>{{todo.text}}</div>"
4543
};
4644
}
4745

4846
class TodoLoaderController {
49-
5047
constructor($ngRedux) {
5148
$ngRedux.connect(state => ({todos: state.todos}), this);
5249
}
53-
54-
[...]
5550
}
5651
```
5752

@@ -64,10 +59,10 @@ Creates the Redux store, and allow `connect()` to access it.
6459
#### Arguments:
6560
* [`reducer`] \(*Function*): A single reducer composed of all other reducers (create with redux.combineReducer)
6661
* [`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.
67-
* [`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 doc](http://rackt.github.io/redux/docs/Glossary.html#store-enhancer)
62+
* [`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.](http://rackt.github.io/redux/docs/Glossary.html#store-enhancer)
6863

6964

70-
### `connect([mapStateToTarget], [target])``
65+
### `connect([mapStateToTarget], [target])`
7166

7267
Connects an Angular component to Redux.
7368

0 commit comments

Comments
 (0)