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

Method initialNavigation

packages/router/src/router.ts:276–286  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 12

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

Calls 3

pathMethod · 0.45

Tested by 6

createRootFunction · 0.64
setupFunction · 0.64
createRootFunction · 0.64
createRootFunction · 0.64