• Overview
@angular/router

withInMemoryScrolling

function

Enables customizable scrolling behavior for router navigations.

withInMemoryScrolling

Enables customizable scrolling behavior for router navigations.

@paramoptionsInMemoryScrollingOptions

Set of configuration parameters to customize scrolling behavior, see InMemoryScrollingOptions for additional information.

Usage Notes

Basic example of how you can enable scrolling feature:

          
const appRoutes: Routes = [];bootstrapApplication(AppComponent,  {    providers: [      provideRouter(appRoutes, withInMemoryScrolling())    ]  });
Jump to details