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

Method navigate

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

586 *
587 */
588 navigate(
589 commands: readonly any[],
590 extras: NavigationExtras = {skipLocationChange: false},
591 ): Promise<boolean> {
592 validateCommands(commands);
593 return this.navigateByUrl(this.createUrlTree(commands, extras), extras);
594 }
595
596 /** Serializes a `UrlTree` into a string */
597 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