MCPcopy
hub / github.com/angular/angular / initialNavigation

Method initialNavigation

packages/router/src/router.ts:268–278  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

266 * Sets up the location change listener and performs the initial navigation.
267 */
268 initialNavigation(): void {
269 this.setUpLocationChangeListener();
270 if (!this.navigationTransitions.hasRequestedNavigation) {
271 this.navigateToSyncWithBrowser(
272 this.location.path(true),
273 IMPERATIVE_NAVIGATION,
274 this.stateManager.restoredState(),
275 {replaceUrl: true},
276 );
277 }
278 }
279
280 /**
281 * 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