( config: Routes, parentPath: string = '', requireStandaloneComponents = false, )
| 58 | } |
| 59 | |
| 60 | export function validateConfig( |
| 61 | config: Routes, |
| 62 | parentPath: string = '', |
| 63 | requireStandaloneComponents = false, |
| 64 | ): void { |
| 65 | // forEach doesn't iterate undefined values |
| 66 | for (let i = 0; i < config.length; i++) { |
| 67 | const route: Route = config[i]; |
| 68 | const fullPath: string = getFullPath(parentPath, route); |
| 69 | validateNode(route, fullPath, requireStandaloneComponents); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | export function assertStandalone(fullPath: string, component: Type<unknown> | undefined): void { |
| 74 | if (component && isNgModule(component)) { |
no test coverage detected
searching dependent graphs…