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

Function runCanActivateChecks

packages/router/src/operators/check_guards.ts:93–111  ·  view source on GitHub ↗
(
  futureSnapshot: RouterStateSnapshot,
  checks: CanActivate[],
  forwardEvent?: (evt: Event) => void,
)

Source from the content-addressed store, hash-verified

91}
92
93function runCanActivateChecks(
94 futureSnapshot: RouterStateSnapshot,
95 checks: CanActivate[],
96 forwardEvent?: (evt: Event) => void,
97) {
98 return from(checks).pipe(
99 concatMap((check: CanActivate) => {
100 return concat(
101 fireChildActivationStart(check.route.parent, forwardEvent),
102 fireActivationStart(check.route, forwardEvent),
103 runCanActivateChild(futureSnapshot, check.path),
104 runCanActivate(futureSnapshot, check.route),
105 );
106 }),
107 first((result) => {
108 return result !== true;
109 }, true),
110 );
111}
112
113/**
114 * This should fire off `ActivationStart` events for each route being activated at this

Callers 1

checkGuardsFunction · 0.85

Calls 5

fireChildActivationStartFunction · 0.85
fireActivationStartFunction · 0.85
runCanActivateChildFunction · 0.85
runCanActivateFunction · 0.85
firstFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…