MCPcopy Index your code
hub / github.com/angular/angular / getAllRouteGuards

Function getAllRouteGuards

packages/router/src/utils/preactivation.ts:47–56  ·  view source on GitHub ↗
(
  future: RouterStateSnapshot,
  curr: RouterStateSnapshot,
  parentContexts: ChildrenOutletContexts,
)

Source from the content-addressed store, hash-verified

45};
46
47export function getAllRouteGuards(
48 future: RouterStateSnapshot,
49 curr: RouterStateSnapshot,
50 parentContexts: ChildrenOutletContexts,
51): Checks {
52 const futureRoot = future._root;
53 const currRoot = curr ? curr._root : null;
54
55 return getChildRouteGuards(futureRoot, currRoot, parentContexts, [futureRoot.value]);
56}
57
58export function getCanActivateChild(
59 p: ActivatedRouteSnapshot,

Callers 4

router.spec.tsFile · 0.90
checkResolveDataFunction · 0.90
checkGuardsFunction · 0.90
setupNavigationsMethod · 0.90

Calls 1

getChildRouteGuardsFunction · 0.85

Tested by 2

checkResolveDataFunction · 0.72
checkGuardsFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…