Add this component to your AngularJS UI-router application to make sure the window scrolls to the top whenever the state changes.
To install the component:
$ ngx install ui-router-scroll-to-top-on-state-change
No clue what the ngx
command line tool is? Learn more about AngularJS Express.
No special instructions are needed.
Just include the component, run gulp
and it will work out of the box.
MIT.