( container: UrlTree, containee: UrlTree, options: IsActiveMatchOptions, )
| 131 | } |
| 132 | |
| 133 | export function containsTree( |
| 134 | container: UrlTree, |
| 135 | containee: UrlTree, |
| 136 | options: IsActiveMatchOptions, |
| 137 | ): boolean { |
| 138 | return ( |
| 139 | pathCompareMap[options.paths](container.root, containee.root, options.matrixParams) && |
| 140 | paramCompareMap[options.queryParams](container.queryParams, containee.queryParams) && |
| 141 | !(options.fragment === 'exact' && container.fragment !== containee.fragment) |
| 142 | ); |
| 143 | } |
| 144 | |
| 145 | function equalParams(container: Params, containee: Params): boolean { |
| 146 | // TODO: This does not handle array params correctly. |
no outgoing calls
no test coverage detected
searching dependent graphs…