# AngularJs - modules

ref angular.module

recommandations :

module dep naming clash

# angular.module === namespace ?

NO

# so how it works ?

  • modules are ref to components for the injector.
  • the injector index is flat, it means that any component from any module registered in the injector is available to injection in everyone.
  • modules cannot avoid name collision. So components names must be uniques.
  • there is no error risen when 2 components with the same name are registered to the injector. The last one is kept.

# Others reading