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

Method navigate

packages/router/src/router.ts:586–592  ·  view source on GitHub ↗

* Navigate based on the provided array of commands and a starting point. * If no starting route is provided, the navigation is absolute. * * @param commands An array of URL fragments with which to construct the target URL. * If the path is static, can be the literal URL string. For a dyn

(
    commands: readonly any[],
    extras: NavigationExtras = {skipLocationChange: false},
  )

Source from the content-addressed store, hash-verified

584 *
585 */
586 navigate(
587 commands: readonly any[],
588 extras: NavigationExtras = {skipLocationChange: false},
589 ): Promise<boolean> {
590 validateCommands(commands);
591 return this.navigateByUrl(this.createUrlTree(commands, extras), extras);
592 }
593
594 /** Serializes a `UrlTree` into a string */
595 serializeUrl(url: UrlTree): string {

Callers 5

searchForMethod · 0.45
showUpdatePathMethod · 0.45
changeTemplateMethod · 0.45
setupCodeToCListenersMethod · 0.45
constructorMethod · 0.45

Calls 3

navigateByUrlMethod · 0.95
createUrlTreeMethod · 0.95
validateCommandsFunction · 0.85

Tested by 1

searchForMethod · 0.36