* Returns the `ActivatedRouteSnapshot` tree as an array, using DFS to traverse the route tree.
(route: ActivatedRouteSnapshot)
| 72 | * Returns the `ActivatedRouteSnapshot` tree as an array, using DFS to traverse the route tree. |
| 73 | */ |
| 74 | function flattenRouteTree(route: ActivatedRouteSnapshot): ActivatedRouteSnapshot[] { |
| 75 | const descendants = route.children.map((child) => flattenRouteTree(child)).flat(); |
| 76 | return [route, ...descendants]; |
| 77 | } |
| 78 | |
| 79 | function runResolve( |
| 80 | futureARS: ActivatedRouteSnapshot, |
no test coverage detected
searching dependent graphs…