I'm using ui-router and want to scroll to the top of the page upon a state change. The docs say to call uiViewScrollProvider.useAnchorScroll() but I don't know where to call it? :
Angular 2 for Angular 1 Developers | by James Ravenscroft | Medium
Angular 2 Series - Part 4: Component Router In-Depth
angular 2 ui-router: change data in parent state - Stack Overflow
uirouter/core examples - CodeSandbox
Sharing the UI router between AngularJS and Angular 6 | by Roelof Jan Elsinga | ITNEXT