Name and explain some Angular Module Loading examples

Technology CommunityCategory: AngularName and explain some Angular Module Loading examples
VietMX Staff asked 3 years ago

A module can be loaded eagerly, lazily and preloaded:

  • Eager loading is loading modules before application starts. Lazy loading is loading modules on demand.
  • Preloading is loading modules in background just after application starts.
  • In lazy loading and preloading, modules are loaded asynchronously.

The application module i.e. AppModule is loaded eagerly before application starts. But the feature modules can be loaded either eagerly or lazily or preloaded.