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