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

Function withDisabledInitialNavigation

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

Source from the content-addressed store, hash-verified

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