MCPcopy
hub / github.com/angular/angular / serializePaths

Function serializePaths

packages/router/src/url_tree.ts:467–469  ·  view source on GitHub ↗
(segment: UrlSegmentGroup)

Source from the content-addressed store, hash-verified

465const DEFAULT_SERIALIZER = new DefaultUrlSerializer();
466
467export function serializePaths(segment: UrlSegmentGroup): string {
468 return segment.segments.map((p) => serializePath(p)).join('/');
469}
470
471function serializeSegment(segment: UrlSegmentGroup, root: boolean): string {
472 if (!segment.hasChildren()) {

Callers 2

toStringMethod · 0.85
serializeSegmentFunction · 0.85

Calls 3

serializePathFunction · 0.85
mapMethod · 0.80
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…