@angular/router

CanMatch

interface

Interface that a class can implement to be a guard deciding if a Route can be matched. If all guards return true, navigation continues and the Router will use the Route during activation. If any guard returns false, the Route is skipped for matching and other Route configurations are processed instead.

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