withRouterConfig
function
Allows to provide extra parameters to configure Router.
withRouterConfig
Allows to provide extra parameters to configure Router.
@paramoptions
RouterConfigOptions
A set of parameters to configure Router, see RouterConfigOptions
for
additional information.
@returns
RouterConfigurationFeature
Usage Notes
Basic example of how you can provide extra configuration options:
const appRoutes: Routes = [];bootstrapApplication(AppComponent, { providers: [ provideRouter(appRoutes, withRouterConfig({ onSameUrlNavigation: 'reload' })) ] });
Jump to details