MCPcopy Index your code
hub / github.com/angular/angular / navigateByUrl

Method navigateByUrl

packages/router/src/router.ts:536–546  ·  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

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.

Callers 15

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

Calls 4

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

Tested by

no test coverage detected