( a: ActivatedRouteSnapshot, b: ActivatedRouteSnapshot, )
| 619 | } |
| 620 | |
| 621 | export function equalParamsAndUrlSegments( |
| 622 | a: ActivatedRouteSnapshot, |
| 623 | b: ActivatedRouteSnapshot, |
| 624 | ): boolean { |
| 625 | const equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url); |
| 626 | const parentsMismatch = !a.parent !== !b.parent; |
| 627 | |
| 628 | return ( |
| 629 | equalUrlParams && |
| 630 | !parentsMismatch && |
| 631 | (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent!)) |
| 632 | ); |
| 633 | } |
| 634 | |
| 635 | export function hasStaticTitle(config: Route) { |
| 636 | return typeof config.title === 'string' || config.title === null; |
no test coverage detected