My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

ScrollTop on router changed

Adrian Hartanto's photo
Adrian Hartanto
·May 11, 2016

Hello guys, is it possible to make page scroll to top every time the router has been changed? I've tried to add window.scrollTo(0,0) on onUpdate Router but it doesnt work Any solution?