withRouterConfig
Allows to provide extra parameters to configure Router.
API
function withRouterConfig( options: RouterConfigOptions, ): RouterConfigurationFeature;
@paramoptions
RouterConfigOptionsA set of parameters to configure Router, see RouterConfigOptions for additional information.
Usage Notes
Basic example of how you can provide extra configuration options:
const appRoutes: Routes = [];
bootstrapApplication(AppComponent,
{
providers: [
provideRouter(appRoutes, withRouterConfig({
onSameUrlNavigation: 'reload'
}))
]
}
);
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/router/withRouterConfig