Enables customizable scrolling behavior for router navigations.
API
function withInMemoryScrolling( options?: InMemoryScrollingOptions, ): InMemoryScrollingFeature;
Usage Notes
Basic example of how you can enable scrolling feature:
const appRoutes: Routes = [];
bootstrapApplication(AppComponent,
{
providers: [
provideRouter(appRoutes, withInMemoryScrolling())
]
}
);