i have trouble to understand shared module face to declarations in app.module.ts, components.module.ts, and mycomponent.module.ts.
On other hand i have trouble to bridge ionic shared module concept use with components.module, face to angular shared module concept use.
A while ago, i thought i had understood this concept but … enabling --prod in build showed me that i don"t understand.
Essentials questions to understand and begin to solve my problem/incomprehension is :
- do we employ the same concept to use same component in different page and in different component ?
- what do i need to do to achieve it, in case where i have to reuse several components in differents page and other components ?
Because if i follow shared module concept, i have to declare component in page module that use it and in my-component module that use it too, knowing that page module and my-component module are not related to the same use place.
if i follow this right concept, i am confronted to an error of type ’ type component is part of the declaration of 2 modules […]’.
so what do i need to understand ?