( a: ActivatedRouteSnapshot, b: ActivatedRouteSnapshot, )
| 633 | } |
| 634 | |
| 635 | export function equalParamsAndUrlSegments( |
| 636 | a: ActivatedRouteSnapshot, |
| 637 | b: ActivatedRouteSnapshot, |
| 638 | ): boolean { |
| 639 | const equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url); |
| 640 | const parentsMismatch = !a.parent !== !b.parent; |
| 641 | |
| 642 | return ( |
| 643 | equalUrlParams && |
| 644 | !parentsMismatch && |
| 645 | (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent!)) |
| 646 | ); |
| 647 | } |
| 648 | |
| 649 | export function hasStaticTitle(config: Route) { |
| 650 | return typeof config.title === 'string' || config.title === null; |
no test coverage detected