MCPcopy Create free account
hub / github.com/angular/angular / verifyComponentIsPartOfNgModule

Function verifyComponentIsPartOfNgModule

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

Source from the content-addressed store, hash-verified

383 }
384
385 function verifyComponentIsPartOfNgModule(type: Type<any>) {
386 type = resolveForwardRef(type);
387 const existingModule = ownerNgModule.get(type);
388 if (!existingModule && !isStandalone(type)) {
389 errors.push(
390 `Component ${stringifyForError(
391 type,
392 )} is not part of any NgModule or the module has not been imported into your module.`,
393 );
394 }
395 }
396
397 function verifyCorrectBootstrapType(type: Type<any>) {
398 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