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

Function createRoot

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

Source from the content-addressed store, hash-verified

826}
827
828export function createRoot(rootCandidate: UrlSegmentGroup): UrlSegmentGroup {
829 return rootCandidate.segments.length > 0
830 ? new UrlSegmentGroup([], {[PRIMARY_OUTLET]: rootCandidate})
831 : rootCandidate;
832}
833
834/**
835 * Recursively

Callers 2

treeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected