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