Pam Halligan-Sims
Pam Halligan-Sims

Reputation: 123

How to import a component from a nested module in core.module or shared.module

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

Answers (1)

jlareau
jlareau

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

Related Questions