November 28, 2022

WeAnswer

The complete guide to the beginners as well as to the experienced Web Developers

AngularJS Modules-Controllers

AngularJS module defines an application. The module is a container for the different parts of an application. The module is a container for the application controllers.
Add a controller to your application, and refer to the controller with the ng-controller directive
Controllers always belong to a module ( ng-app ).
Example: 1