@angular/router

UrlMatcher

Type Alias

A function for matching a route against URLs. Implement a custom URL matcher for Route.matcher when a combination of path and pathMatch is not expressive enough. Cannot be used together with path and pathMatch.

  
    type UrlMatcher = (  segments: UrlSegment[],  group: UrlSegmentGroup,  route: Route,) => UrlMatchResult | null
  
  
Jump to details