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

Method canDeactivate

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

Source from the content-addressed store, hash-verified

1048 */
1049export interface CanDeactivate<T> {
1050 canDeactivate(
1051 component: T,
1052 currentRoute: ActivatedRouteSnapshot,
1053 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