#Import component in other module

2 messages · Page 1 of 1 (latest)

ancient nebula
#

Hello, i imported buttoncomponent in my AppModule and i want to use it in companyModule too, so i export the component in appModule and import appmodule in company module. While i import appModule in company Module i have error..

Can someone explain me what i do wrong ? Thanks

vital zodiac
#

AppModule might import global stuff but not meant to be imported in another module.
Using Modules add complexity, I encourage you to move to standalone API initialized by default on new angular v17 projects.