MCPcopy Index your code
hub / github.com/angular/angular / verifyComponentIsPartOfNgModule

Function verifyComponentIsPartOfNgModule

packages/core/src/render3/jit/module.ts:370–380  ·  view source on GitHub ↗
(type: Type<any>)

Source from the content-addressed store, hash-verified

368 }
369
370 function verifyComponentIsPartOfNgModule(type: Type<any>) {
371 type = resolveForwardRef(type);
372 const existingModule = ownerNgModule.get(type);
373 if (!existingModule && !isStandalone(type)) {
374 errors.push(
375 `Component ${stringifyForError(
376 type,
377 )} is not part of any NgModule or the module has not been imported into your module.`,
378 );
379 }
380 }
381
382 function verifyCorrectBootstrapType(type: Type<any>) {
383 type = resolveForwardRef(type);

Callers

nothing calls this directly

Calls 5

resolveForwardRefFunction · 0.90
isStandaloneFunction · 0.90
stringifyForErrorFunction · 0.90
getMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…