![React Router | NPM React Router Dom - Interview Questions Angular, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, ReactJs React Router | NPM React Router Dom - Interview Questions Angular, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, ReactJs](https://1.bp.blogspot.com/-qAXJUCAMTog/Xdj79qWxOxI/AAAAAAAAVgc/yYn8y8Wt0FwrAQKtMuMg63JWvyltiwENwCLcBGAsYHQ/s1600/npm-package-react-router-dom.png)
React Router | NPM React Router Dom - Interview Questions Angular, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, ReactJs
![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? : 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? :](https://external-preview.redd.it/c_RIrAS9uxApfEt_2POHBZJYwLSrEu6ZPrdhJ9PXnQc.jpg?auto=webp&s=02375ba6cfd3bf19460f0a9a0128c1a16a8eb232)
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? :
![AngularJSとAngularのハイブリッドアプリ基本(AngularJS+ui-router+Angular+Angular Router+ngUpgrade+Lazy Load) - Qiita AngularJSとAngularのハイブリッドアプリ基本(AngularJS+ui-router+Angular+Angular Router+ngUpgrade+Lazy Load) - Qiita](https://qiita-user-contents.imgix.net/https%3A%2F%2Fcdn.qiita.com%2Fassets%2Fpublic%2Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png?ixlib=rb-4.0.0&w=1200&mark64=aHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZ0eHQ9QW5ndWxhckpTJUUzJTgxJUE4QW5ndWxhciVFMyU4MSVBRSVFMyU4MyU4RiVFMyU4MiVBNCVFMyU4MyU5NiVFMyU4MyVBQSVFMyU4MyU4MyVFMyU4MyU4OSVFMyU4MiVBMiVFMyU4MyU5NyVFMyU4MyVBQSVFNSU5RiVCQSVFNiU5QyVBQyUyOEFuZ3VsYXJKUyUyQnVpLXJvdXRlciUyQkFuZ3VsYXIlMkJBbmd1bGFyJTIwUm91dGVyJTJCbmdVcGdyYWRlJTJCTGF6eSUyMExvYWQlMjkmdHh0LWNvbG9yPSUyMzIxMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT01NiZ0eHQtY2xpcD1lbGxpcHNpcyZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZzPWZkZmEzNDRhY2FkOTY0MjkzN2MzY2QzMzgyOTU4MmIw&mark-x=142&mark-y=112&blend64=aHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQwbWFnbmV0MTYzJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz1kN2IyNDRlZDY3ZjQ2ODVlMjBjMWE4MDRlNGVhNDM5Yg&blend-x=142&blend-y=491&blend-mode=normal&s=e0a02206e1baf584114e7c8d9dfa9d79)