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

Function getOutlets

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

isCommandWithOutletsFunction · 0.85

Tested by

no test coverage detected