MCPcopy Index your code
hub / github.com/angular/angular / createRoot

Function createRoot

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

Source from the content-addressed store, hash-verified

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

Callers 2

treeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…