( a: ActivatedRouteSnapshot, b: ActivatedRouteSnapshot, )
| 531 | } |
| 532 | |
| 533 | export function equalParamsAndUrlSegments( |
| 534 | a: ActivatedRouteSnapshot, |
| 535 | b: ActivatedRouteSnapshot, |
| 536 | ): boolean { |
| 537 | const equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url); |
| 538 | const parentsMismatch = !a.parent !== !b.parent; |
| 539 | |
| 540 | return ( |
| 541 | equalUrlParams && |
| 542 | !parentsMismatch && |
| 543 | (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent!)) |
| 544 | ); |
| 545 | } |
| 546 | |
| 547 | export function hasStaticTitle(config: Route) { |
| 548 | return typeof config.title === 'string' || config.title === null; |
no test coverage detected
searching dependent graphs…