MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / angularRoutesFor

Function angularRoutesFor

src/resolution/frameworks/angular-router.ts:793–797  ·  view source on GitHub ↗
(table: AngularRouteTable, filePath: string)

Source from the content-addressed store, hash-verified

791 * outside any app (an Nx `libs/ui`) — the one app's, when there is only one.
792 */
793export function angularRoutesFor(table: AngularRouteTable, filePath: string): RouteTable | null {
794 const own = routesForFile(table, filePath);
795 if (own && own.exact.size > 0) return own;
796 return table.byRoot.size === 1 ? [...table.byRoot.values()][0]! : null;
797}
798
799// =============================================================================
800// Navigation

Callers 2

angularTemplateEdgesFunction · 0.90
resolveFunction · 0.85

Calls 1

routesForFileFunction · 0.90

Tested by

no test coverage detected