Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

withEnabledBlockingInitialNavigation

Configures initial navigation to start before the root component is created.

See more...

      
      withEnabledBlockingInitialNavigation(): EnabledBlockingInitialNavigationFeature
    
Parameters

There are no parameters.

Returns

EnabledBlockingInitialNavigationFeature: A set of providers for use with provideRouter.

See also

Description

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...

Usage notes

Basic example of how you can enable this navigation behavior:

      
      const appRoutes: Routes = [];
bootstrapApplication(AppComponent,
  {
    providers: [
      provideRouter(appRoutes, withEnabledBlockingInitialNavigation())
    ]
  }
);