MCPcopy
hub / github.com/angular/angular / validateConfig

Function validateConfig

packages/router/src/utils/config.ts:60–71  ·  view source on GitHub ↗
(
  config: Routes,
  parentPath: string = '',
  requireStandaloneComponents = false,
)

Source from the content-addressed store, hash-verified

58}
59
60export 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
73export function assertStandalone(fullPath: string, component: Type<unknown> | undefined): void {
74 if (component && isNgModule(component)) {

Callers 4

config.spec.tsFile · 0.90
loadChildrenFunction · 0.90
resetConfigMethod · 0.90
validateNodeFunction · 0.85

Calls 2

getFullPathFunction · 0.85
validateNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…