MCPcopy
hub / github.com/angular/angular / sortActivatedRouteSnapshots

Function sortActivatedRouteSnapshots

packages/router/src/recognize.ts:534–540  ·  view source on GitHub ↗
(nodes: TreeNode<ActivatedRouteSnapshot>[])

Source from the content-addressed store, hash-verified

532}
533
534function sortActivatedRouteSnapshots(nodes: TreeNode<ActivatedRouteSnapshot>[]): void {
535 nodes.sort((a, b) => {
536 if (a.value.outlet === PRIMARY_OUTLET) return -1;
537 if (b.value.outlet === PRIMARY_OUTLET) return 1;
538 return a.value.outlet.localeCompare(b.value.outlet);
539 });
540}
541
542function hasEmptyPathConfig(node: TreeNode<ActivatedRouteSnapshot>) {
543 const config = node.value.routeConfig;

Callers 1

processChildrenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…