@angular/router

CanDeactivateFn

Type Alias

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

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