| 1. |
Explain Ng-controller Directive ? |
|
Answer» Ng-CONTROLLER directive tells ANGULARJS what controller to use with this VIEW. AngularJS application mainly relies on controllers to control the flow of DATA in the application. A controller is a JavaScript object CONTAINING attributes/properties and functions. Each controller accepts $scope as a parameter which refers to the application/module that controller is to control. Ng-controller directive tells AngularJS what controller to use with this view. AngularJS application mainly relies on controllers to control the flow of data in the application. A controller is a JavaScript object containing attributes/properties and functions. Each controller accepts $scope as a parameter which refers to the application/module that controller is to control. |
|