Skip to content

Commit

Permalink
Add field to config to get live-reload working
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycwong committed Aug 18, 2016
1 parent 7ab22cb commit 94e515c
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 94e515c

Please sign in to comment.