I have two modules:
- Module A
- Component Home
- Component Presentation
- Module B
- Component CustomInput
The component Presentation uses the CustomInput, so in module B, I exported CustomInputComponent, and import the module B into module A.
The problem is, in the spec file of Presentation Component, I also have to import Module B into the Test Module. And after that, I have this error:
Component HomeComponent is not part of any NgModule or the module has not been imported into your module
I really don't understand why ? Any ideas ? Thanks !
Aucun commentaire:
Enregistrer un commentaire