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