MCPcopy Index your code
hub / github.com/angular/angular / withDisabledInitialNavigation

Function withDisabledInitialNavigation

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

Source from the content-addressed store, hash-verified

467 * @publicApi
468 */
469export function withDisabledInitialNavigation(): DisabledInitialNavigationFeature {
470 const providers = [
471 provideAppInitializer(() => {
472 inject(Router).setUpLocationChangeListener();
473 }),
474 {provide: INITIAL_NAVIGATION, useValue: InitialNavigation.Disabled},
475 ];
476 return routerFeature(RouterFeatureKind.DisabledInitialNavigationFeature, providers);
477}
478
479/**
480 * 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…