Function
sortActivatedRouteSnapshots
(nodes: TreeNode<ActivatedRouteSnapshot>[])
Source from the content-addressed store, hash-verified
| 558 | } |
| 559 | |
| 560 | function sortActivatedRouteSnapshots(nodes: TreeNode<ActivatedRouteSnapshot>[]): void { |
| 561 | nodes.sort((a, b) => { |
| 562 | if (a.value.outlet === PRIMARY_OUTLET) return -1; |
| 563 | if (b.value.outlet === PRIMARY_OUTLET) return 1; |
| 564 | return a.value.outlet.localeCompare(b.value.outlet); |
| 565 | }); |
| 566 | } |
| 567 | |
| 568 | function hasEmptyPathConfig(node: TreeNode<ActivatedRouteSnapshot>) { |
| 569 | const config = node.value.routeConfig; |
Tested by
no test coverage detected