Modules are collections of application configuration information for components:
controllers, directives, filters, etc. They provide recipes for the injector
to do the actual instantiation. A module itself has no behaviour but only state.
A such, it acts as a data structure between the Angular instance and the injector service.
Since this is an internal structure that is exposed only via the Angular instance,
it contains no validation of the items it receives. It is up to the instantiator on
modules to do the actual validation.
Modules are collections of application configuration information for components: controllers, directives, filters, etc. They provide recipes for the injector to do the actual instantiation. A module itself has no behaviour but only state. A such, it acts as a data structure between the Angular instance and the injector service.
Since this is an internal structure that is exposed only via the Angular instance, it contains no validation of the items it receives. It is up to the instantiator on modules to do the actual validation.