MCPcopy
hub / github.com/angular/angular / emptyPathMatch

Function emptyPathMatch

packages/router/src/utils/config_matching.ts:227–237  ·  view source on GitHub ↗
(
  segmentGroup: UrlSegmentGroup,
  slicedSegments: UrlSegment[],
  r: Route,
)

Source from the content-addressed store, hash-verified

225}
226
227export function emptyPathMatch(
228 segmentGroup: UrlSegmentGroup,
229 slicedSegments: UrlSegment[],
230 r: Route,
231): boolean {
232 if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') {
233 return false;
234 }
235
236 return r.path === '';
237}
238
239export function noLeftoversInUrl(
240 segmentGroup: UrlSegmentGroup,

Calls 1

hasChildrenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…