Controllers – AngularJS
AngularJS supports Model-View-Controller (MVC) architecture pattern. A Controller is a javascript object which has properties and functions. AngularJS Controller is the only object that communicates with both Models and Views. Controller Directive In AngularJS application, a controller directive is defined with ng-controller directive. <div ng-controller=”empController”> Controller Syntax <script> angular.module(’empApp’, []).controller(’empController’, …