MCPcopy Index your code
hub / github.com/angular/angular / containsTree

Function containsTree

packages/router/src/url_tree.ts:133–143  ·  view source on GitHub ↗
(
  container: UrlTree,
  containee: UrlTree,
  options: IsActiveMatchOptions,
)

Source from the content-addressed store, hash-verified

131}
132
133export 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
145function equalParams(container: Params, containee: Params): boolean {
146 // TODO: This does not handle array params correctly.

Callers 3

url_tree.spec.tsFile · 0.90
isActiveMethod · 0.90
isActiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…