@angular/router

CanDeactivateFn

Type Alias

The signature of a function used as a canDeactivate guard on a Route.

  
    type CanDeactivateFn = (  component: T,  currentRoute: ActivatedRouteSnapshot,  currentState: RouterStateSnapshot,  nextState: RouterStateSnapshot,) => MaybeAsync<GuardResult>
  
  
Jump to details