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

Function createRoot

packages/router/src/url_tree.ts:909–913  ·  view source on GitHub ↗
(rootCandidate: UrlSegmentGroup)

Source from the content-addressed store, hash-verified

907}
908
909export function createRoot(rootCandidate: UrlSegmentGroup): UrlSegmentGroup {
910 return rootCandidate.segments.length > 0
911 ? new UrlSegmentGroup([], {[PRIMARY_OUTLET]: rootCandidate})
912 : rootCandidate;
913}
914
915/**
916 * Recursively

Callers 2

treeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected