DEV Community

Discussion on: Scroll to the top on Angular route change

Collapse
emertola profile image
emertola

Is this still working?

I have angular app with a blog posts page ('/blog'), where it shows list of blog posts and each has button to redirect the user to that specific blog.
When I tried to click that button ('/blog/'), it doesn't scroll to top. Tried your code, but doesn't work on mine.