• Overview
@angular/router

defaultUrlMatcher

function

Matches the route configuration (route) against the actual URL (segments).

  
    function defaultUrlMatcher(  segments: UrlSegment[],  segmentGroup: UrlSegmentGroup,  route: Route): UrlMatchResult | null;
  
  

defaultUrlMatcher

Matches the route configuration (route) against the actual URL (segments).

When no matcher is defined on a Route, this is the matcher used by the Router by default.

@paramsegmentsUrlSegment[]

The remaining unmatched segments in the current navigation

@paramsegmentGroupUrlSegmentGroup

The current segment group being matched

@paramrouteRoute

The Route to match against.

@returnsUrlMatchResult | null
Jump to details