On this page
defaultUrlMatcher
function
Matches the route configuration (route
) against the actual URL (segments
).
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 |
Returns
UrlMatchResult | null
: The resulting match information or null
if the route
should not match.
See also
UrlMatchResult
Route
Description
When no matcher is defined on a Route
, this is the matcher used by the Router by default.
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v14.angular.io/api/router/defaultUrlMatcher