scroll to top when page change in angular 6 code example
Example: angular route change scroll to top
RouterModule.forRoot(appRoutes, { scrollPositionRestoration: 'enabled' })
RouterModule.forRoot(appRoutes, { scrollPositionRestoration: 'enabled' })