MCPcopy
hub / github.com/angular/angular / navigate

Method navigate

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

576 *
577 */
578 navigate(
579 commands: readonly any[],
580 extras: NavigationExtras = {skipLocationChange: false},
581 ): Promise<boolean> {
582 validateCommands(commands);
583 return this.navigateByUrl(this.createUrlTree(commands, extras), extras);
584 }
585
586 /** Serializes a `UrlTree` into a string */
587 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