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

Method initialNavigation

packages/router/src/router.ts:275–285  ·  view source on GitHub ↗

* Sets up the location change listener and performs the initial navigation.

()

Source from the content-addressed store, hash-verified

273 * Sets up the location change listener and performs the initial navigation.
274 */
275 initialNavigation(): void {
276 this.setUpLocationChangeListener();
277 if (!this.navigationTransitions.hasRequestedNavigation) {
278 this.navigateToSyncWithBrowser(
279 this.location.path(true),
280 IMPERATIVE_NAVIGATION,
281 this.stateManager.restoredState(),
282 {replaceUrl: true},
283 );
284 }
285 }
286
287 /**
288 * Sets up the location change listener. This listener detects navigations triggered from outside

Callers 11

createRootFunction · 0.80
createRootFunction · 0.80
createRootFunction · 0.80
createRootFunction · 0.80
getBootstrapListenerFunction · 0.80

Calls 3

pathMethod · 0.45

Tested by 5

createRootFunction · 0.64
createRootFunction · 0.64
createRootFunction · 0.64