Visitar URL original
withRouterConfig • Angular
The Wayback Machine - https://web.archive.org/web/20260217020535/https://angular.dev/api/router/withRouterConfig
    • Overview
@angular/router

withRouterConfig

function
stable

Allows to provide extra parameters to configure Router.

API

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