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

-3

You can try this:

RouterModule.forRoot(routes, { scrollPositionRestoration: 'enabled' }),
Srikar Phani Kumar M
  • 1,069
  • 1
  • 3
  • 8