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

Function getOutlets

packages/router/src/create_url_tree.ts:379–385  ·  view source on GitHub ↗
(commands: readonly unknown[])

Source from the content-addressed store, hash-verified

377}
378
379function getOutlets(commands: readonly unknown[]): {[k: string]: readonly unknown[] | string} {
380 if (isCommandWithOutlets(commands[0])) {
381 return commands[0].outlets;
382 }
383
384 return {[PRIMARY_OUTLET]: commands};
385}
386
387function updateSegmentGroup(
388 segmentGroup: UrlSegmentGroup | undefined,

Callers 1

Calls 1

isCommandWithOutletsFunction · 0.85

Tested by

no test coverage detected