( container: UrlTree, containee: UrlTree, options?: Partial<IsActiveMatchOptions>, )
| 151 | * @publicApi |
| 152 | */ |
| 153 | export function containsTree( |
| 154 | container: UrlTree, |
| 155 | containee: UrlTree, |
| 156 | options?: Partial<IsActiveMatchOptions>, |
| 157 | ): boolean { |
| 158 | const matchOptions: IsActiveMatchOptions = { |
| 159 | ...subsetMatchOptions, |
| 160 | ...(options || {}), |
| 161 | }; |
| 162 | |
| 163 | return ( |
| 164 | pathCompareMap[matchOptions.paths](container.root, containee.root, matchOptions.matrixParams) && |
| 165 | paramCompareMap[matchOptions.queryParams](container.queryParams, containee.queryParams) && |
| 166 | !(matchOptions.fragment === 'exact' && container.fragment !== containee.fragment) |
| 167 | ); |
| 168 | } |
| 169 | |
| 170 | function equalParams(container: Params, containee: Params): boolean { |
| 171 | // TODO: This does not handle array params correctly. |
no outgoing calls
no test coverage detected