MCPcopy Create free account
hub / github.com/angular/angular / serializePath

Function serializePath

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

Source from the content-addressed store, hash-verified

623}
624
625export function serializePath(path: UrlSegment): string {
626 return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`;
627}
628
629function serializeMatrixParams(params: {[key: string]: string}): string {
630 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