Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Commit

Permalink
docs(README): Fix numbering
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
MikeRyanDev committed May 29, 2016
2 parents 5acef0b + 34effb3 commit fac115b
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@
### Setup

1. Use npm to install the bindings:
```
npm install @ngrx/router-store --save
```
```
npm install @ngrx/router-store --save
```

2. Use the `routerReducer` when providing `Store`:
```ts
import { provideStore } from '@ngrx/store';
import { routerReducer } from '@ngrx/router-store';


export const storeProvider = provideStore({
// Your reducers go here,
router: routerReducer
});
```
```ts
import { provideStore } from '@ngrx/store';
import { routerReducer } from '@ngrx/router-store';
export const storeProvider = provideStore({
// Your reducers go here,
router: routerReducer
});
```

3. Install the bindings providers after you setup the router providers:
```ts
import { connectRouterToStore } from '@ngrx/router-store';

bootstrap(App, [
storeProvider,
provideRouter(routes),
connectRouterToStore()
]);
```
```ts
import { connectRouterToStore } from '@ngrx/router-store';
bootstrap(App, [
storeProvider,
provideRouter(routes),
connectRouterToStore()
]);
```

0 comments on commit fac115b

Please sign in to comment.