With ui-router whenever the user navigates between states the browser window always scrolls to a seemingly random location. It seems to be worse when there are multiple ui-views in play. How can I prevent this from happening?
The ui-view autoscroll parameter controls this. By setting autoscroll="false" in all of your ui-views the browser will not scroll when navigating.
http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.directive:ui-view
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With