withDisabledInitialNavigation
function
stable
Disables initial navigation.
Description
Disables initial navigation.
Use if there is a reason to have more control over when the router starts its initial navigation due to some complex initialization logic.
Usage Notes
Basic example of how you can disable initial navigation:
const appRoutes: Routes = [];
bootstrapApplication(AppComponent,
{
providers: [
provideRouter(appRoutes, withDisabledInitialNavigation())
]
}
);
Jump to details