function
Configures initial navigation to start before the root component is created.
withEnabledBlockingInitialNavigation(): EnabledBlockingInitialNavigationFeature
There are no parameters.
EnabledBlockingInitialNavigationFeature
: A set of providers for use with provideRouter
.
The bootstrap is blocked until the initial navigation is complete. This value is required for server-side rendering to work.
Further information is available in the Usage Notes...
Basic example of how you can enable this navigation behavior:
const appRoutes: Routes = []; bootstrapApplication(AppComponent, { providers: [ provideRouter(appRoutes, withEnabledBlockingInitialNavigation()) ] } );
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/router/withEnabledBlockingInitialNavigation