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

Function provideInitialNavigation

packages/router/src/router_module.ts:235–242  ·  view source on GitHub ↗
(config: Pick<ExtraOptions, 'initialNavigation'>)

Source from the content-addressed store, hash-verified

233// Note: For internal use only with `RouterModule`. Standalone router setup with `provideRouter`
234// users call `withXInitialNavigation` directly.
235function provideInitialNavigation(config: Pick<ExtraOptions, 'initialNavigation'>): Provider[] {
236 return [
237 config.initialNavigation === 'disabled' ? withDisabledInitialNavigation().ɵproviders : [],
238 config.initialNavigation === 'enabledBlocking'
239 ? withEnabledBlockingInitialNavigation().ɵproviders
240 : [],
241 ];
242}
243
244// TODO(atscott): This should not be in the public API
245/**

Callers 1

forRootMethod · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…