Allows to provide extra parameters to configure Router.
API
function withRouterConfig( options: RouterConfigOptions, ): RouterConfigurationFeature;
Usage Notes
Basic example of how you can provide extra configuration options:
const appRoutes: Routes = [];
bootstrapApplication(AppComponent,
{
providers: [
provideRouter(appRoutes, withRouterConfig({
onSameUrlNavigation: 'reload'
}))
]
}
);