Skip to content

Commit

Permalink
Merge pull request #28 from dollarshaveclub/readme-update
Browse files Browse the repository at this point in the history
Add field to config to get live-reload working
  • Loading branch information
bennycwong authored Aug 19, 2016
2 parents 7ab22cb + 94e515c commit f86ad28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ const Router = Ember.Router.extend(RouterScroll, {}
### Step 3: Update your app's locationType
Edit `config/environment.js` and change `locationType`
Edit `config/environment.js` and change `locationType`.
Also add `historySupportMiddleware: true,` to get live-reload working in nested routes. (See [Issue #21](https://github.com/dollarshaveclub/ember-router-scroll/issues/21))
```js
locationType: 'router-scroll'
historySupportMiddleware: true,
```
This location type inherits from Ember's `HistoryLocation`.
Expand Down

0 comments on commit f86ad28

Please sign in to comment.