Skip to main content
AngularJS - Modules

AngularJS - Modules

Organize services, controllers, directives, filters, and dependencies into modules.

AngularJS - Modules illustration

How it works

An AngularJS module registers controllers, services, directives, filters, and configuration, and declares dependencies on other modules. Creating a module and retrieving one are different operations. Keep feature boundaries clear and avoid accidental module redefinition.

Practice checklist

  • Use examples that match the AngularJS version in the existing application.
  • Keep user input, asynchronous states, and failures visible and understandable.
  • Test keyboard access and validate important rules on the server.
  • Review dependency support and migration needs before production changes.

Further reading: Tutorialspoint: AngularJS - Modules · Official AngularJS developer guide · Migration guide.