9

scrollPositionRestoration : 'top' is not working for RouterModule.forchild()? Is there any solution in angular 7 to make sure that page always scroll top after navigation?

1 Answers1

-1

You can try this:

RouterModule.forRoot(routes, { scrollPositionRestoration: 'enabled' }),