MCPcopy Create free account
hub / github.com/angular/angular / canDeactivate

Method canDeactivate

packages/router/src/models.ts:1107–1107  ·  view source on GitHub ↗
(
    component: T,
    currentRoute: ActivatedRouteSnapshot,
    currentState: RouterStateSnapshot,
    nextState: RouterStateSnapshot,
  )

Source from the content-addressed store, hash-verified

1105 */
1106export interface CanDeactivate<T> {
1107 canDeactivate(
1108 component: T,
1109 currentRoute: ActivatedRouteSnapshot,
1110 currentState: RouterStateSnapshot,

Callers 3

guardsIntegrationSuiteFunction · 0.65
mapToCanDeactivateFunction · 0.65
runCanDeactivateFunction · 0.65

Implementers 4

MyCanDeactivateGuardpackages/router/test/computed_state_re
AlwaysTruepackages/router/test/integration/guard
ClassWithNextStatepackages/router/test/integration/guard
CanDeactivateGuarddevtools/projects/ng-devtools-backend/

Calls

no outgoing calls

Tested by 1

guardsIntegrationSuiteFunction · 0.52