function
Disables initial navigation.
withDisabledInitialNavigation(): DisabledInitialNavigationFeature
There are no parameters.
DisabledInitialNavigationFeature
: A set of providers for use with provideRouter
.
Use if there is a reason to have more control over when the router starts its initial navigation due to some complex initialization logic.
Further information is available in the Usage Notes...
Basic example of how you can disable initial navigation:
const appRoutes: Routes = []; bootstrapApplication(AppComponent, { providers: [ provideRouter(appRoutes, withDisabledInitialNavigation()) ] } );
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/router/withDisabledInitialNavigation