@angular/router

CanLoad

interface
Deprecated

Interface that a class can implement to be a guard deciding if children can be loaded. If all guards return true, navigation continues. If any guard returns false, navigation is cancelled. If any guard returns a UrlTree, current navigation is cancelled and a new navigation starts to the UrlTree returned from the guard.

  
    interface CanLoad {  canLoad(route: Route, segments: UrlSegment[]): MaybeAsync<GuardResult>;}}
  
  
Jump to details