When would you use eager module loading?

Technology CommunityCategory: AngularWhen would you use eager module loading?
VietMX Staff asked 3 years ago

Eager loading: To load a feature module eagerly we need to import it into application module using imports metadata of @NgModule decorator. Eager loading is useful in small size applications. In eager loading, all the feature modules will be loaded before the application starts. Hence the subsequent request to the application will be faster.