Commit Graph

2 Commits

Author SHA1 Message Date
Piotr Sarnacki
55005b1b13 Scroll page in beforeModel hook in scroll-mixin
The `activate` hook is not always called when the route is used,
specifically it will not be called when the model changes, but the
change happened within the same route (for example when switching from
/travis-ci/travis-web to /travis-ci/travis-core). `beforeModel` is
guaranteed to be called every time the model is changed, both when the
route is entered for the first time and on any subsequent calls.
2016-02-23 13:05:36 +01:00
Curtis Ekstrom
2ae61562ea Ensure scroll position reset
This adds a new mixin that allows us to opt in to scroll reset
behavior.
2016-02-16 14:10:12 +01:00