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

Method navigateByUrl

packages/router/src/router.ts:544–554  ·  view source on GitHub ↗

* 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,
    },
  )

Source from the content-addressed store, hash-verified

542 *
543 */
544 navigateByUrl(
545 url: string | UrlTree,
546 extras: NavigationBehaviorOptions = {
547 skipLocationChange: false,
548 },
549 ): Promise<boolean> {
550 const urlTree = isUrlTree(url) ? url : this.parseUrl(url);
551 const mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);
552
553 return this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras);
554 }
555
556 /**
557 * Navigate based on the provided array of commands and a starting point.

Callers 15

navigateMethod · 0.95
enterMethod · 0.45
leaveMethod · 0.45
defer_spec.tsFile · 0.45
triggerRedirectIfCommandFunction · 0.45
navigateByUrlFunction · 0.45
onClickMethod · 0.45
upgrade.spec.tsFile · 0.45

Calls 4

parseUrlMethod · 0.95
scheduleNavigationMethod · 0.95
isUrlTreeFunction · 0.90
mergeMethod · 0.45

Tested by

no test coverage detected