Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

defaultUrlMatcher

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

See more...

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

The remaining unmatched segments in the current navigation

segmentGroup UrlSegmentGroup

The current segment group being matched

route Route

The Route to match against.

Returns

UrlMatchResult | null: The resulting match information or null if the route should not match.

See also

Description

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