Reputation: 123
I am working on a large app and will have several smaller modules inside of core.module which will need to export components of their own.
How can I export/import the components to other modules without the module being loaded multiple times?
Upvotes: 0
Views: 376
Reputation: 2860
I'd suggest almost no components in the core module. It is suggested to put common components in a shared module. Keep the core module mostly services/guards/interceptors/auth/utilities. View https://angular.io/guide/ngmodule
Upvotes: 1