* Navigates to a view using an absolute route path. * * @param url An absolute path for a defined route. The function does not apply any delta to the * current URL. * @param extras An object containing properties that modify the navigation strategy. * * @returns A Promise that
(
url: string | UrlTree,
extras: NavigationBehaviorOptions = {
skipLocationChange: false,
},
)
| 534 | * |
| 535 | */ |
| 536 | navigateByUrl( |
| 537 | url: string | UrlTree, |
| 538 | extras: NavigationBehaviorOptions = { |
| 539 | skipLocationChange: false, |
| 540 | }, |
| 541 | ): Promise<boolean> { |
| 542 | const urlTree = isUrlTree(url) ? url : this.parseUrl(url); |
| 543 | const mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree); |
| 544 | |
| 545 | return this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras); |
| 546 | } |
| 547 | |
| 548 | /** |
| 549 | * Navigate based on the provided array of commands and a starting point. |
no test coverage detected