AngularJS Controllers

1.What is Angular Js Controllers?

Angular Js Applications are controlled by the controller to control the flow of data in the application.

A controller is a javascript object containing a attributes/properties and functions.

Each controller accepts $scope as a parameter which refers to application/module that controller to control.

The ng-controller directive defines the application controller.