* @deprecated 21.1 - Use the `isActive` function instead. * @see isActive
(url: string | UrlTree, matchOptions: boolean | Partial<IsActiveMatchOptions>)
| 635 | * @see {@link isActive} |
| 636 | */ |
| 637 | isActive(url: string | UrlTree, matchOptions: boolean | Partial<IsActiveMatchOptions>): boolean { |
| 638 | let options: IsActiveMatchOptions; |
| 639 | if (matchOptions === true) { |
| 640 | options = {...exactMatchOptions}; |
| 641 | } else if (matchOptions === false) { |
| 642 | options = {...subsetMatchOptions}; |
| 643 | } else { |
| 644 | options = {...subsetMatchOptions, ...matchOptions}; |
| 645 | } |
| 646 | if (isUrlTree(url)) { |
| 647 | return containsTree(this.currentUrlTree, url, options); |
| 648 | } |
| 649 | |
| 650 | const urlTree = this.parseUrl(url); |
| 651 | return containsTree(this.currentUrlTree, urlTree, options); |
| 652 | } |
| 653 | |
| 654 | private scheduleNavigation( |
| 655 | rawUrl: UrlTree, |
nothing calls this directly
no test coverage detected