MCPcopy Create free account
hub / github.com/angular/angular / withDisabledInitialNavigation

Function withDisabledInitialNavigation

packages/router/src/provide_router.ts:475–483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473 * @publicApi
474 */
475export function withDisabledInitialNavigation(): DisabledInitialNavigationFeature {
476 const providers = [
477 provideAppInitializer(() => {
478 inject(Router).setUpLocationChangeListener();
479 }),
480 {provide: INITIAL_NAVIGATION, useValue: InitialNavigation.Disabled},
481 ];
482 return routerFeature(RouterFeatureKind.DisabledInitialNavigationFeature, providers);
483}
484
485/**
486 * A type alias for providers returned by `withDebugTracing` for use with `provideRouter`.

Calls 4

provideAppInitializerFunction · 0.90
injectFunction · 0.90
routerFeatureFunction · 0.85

Tested by

no test coverage detected