(table: AngularRouteTable, filePath: string)
| 791 | * outside any app (an Nx `libs/ui`) — the one app's, when there is only one. |
| 792 | */ |
| 793 | export 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 |
no test coverage detected