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

Function runCanDeactivateChecks

packages/router/src/operators/check_guards.ts:80–91  ·  view source on GitHub ↗
(
  checks: CanDeactivate[],
  futureRSS: RouterStateSnapshot,
  currRSS: RouterStateSnapshot,
)

Source from the content-addressed store, hash-verified

78}
79
80function runCanDeactivateChecks(
81 checks: CanDeactivate[],
82 futureRSS: RouterStateSnapshot,
83 currRSS: RouterStateSnapshot,
84) {
85 return from(checks).pipe(
86 mergeMap((check) => runCanDeactivate(check.component, check.route, currRSS, futureRSS)),
87 first((result) => {
88 return result !== true;
89 }, true),
90 );
91}
92
93function runCanActivateChecks(
94 futureSnapshot: RouterStateSnapshot,

Callers 1

checkGuardsFunction · 0.85

Calls 2

runCanDeactivateFunction · 0.85
firstFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…