* Sets up the location change listener and performs the initial navigation.
()
| 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 |