My structure is as follows :
App
*component, module, template*
Component 1
*component, module, template*
Component 11
*component, module, template*
Global Component
*component, temaplte, BUT NO MODULE*
My App module contains the component 1 and component 11 modules. I declared the global component in the app module, so that I can use it in all my other components. I also exported it in app module.
But when I use the selector in the component 11 template, the console says not a known element
.
I tried importing it in my other components but it says it's already imported, and that I should import it in a higher module.
Could you tell me how to declare a component so that it can be used in child templates ?