When dependent modules of a module are loaded?

Technology CommunityCategory: AngularJSWhen dependent modules of a module are loaded?
VietMX Staff asked 3 years ago

A module might have dependencies on other modules. The dependent modules are loaded by angular before the requiring module is loaded.

In other words the configuration blocks of the dependent modules execute before the configuration blocks of the requiring module. The same is true for the run blocks. Each module can only be loaded once, even if multiple other modules require it.