MCPcopy
hub / github.com/angular/angular / serializePath

Function serializePath

packages/router/src/url_tree.ts:562–564  ·  view source on GitHub ↗
(path: UrlSegment)

Source from the content-addressed store, hash-verified

560}
561
562export function serializePath(path: UrlSegment): string {
563 return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`;
564}
565
566function serializeMatrixParams(params: {[key: string]: string}): string {
567 return Object.entries(params)

Callers 3

expectSegmentFunction · 0.90
toStringMethod · 0.85
serializePathsFunction · 0.85

Calls 2

serializeMatrixParamsFunction · 0.85
encodeUriSegmentFunction · 0.70

Tested by 1

expectSegmentFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…