AngularJS Controllers overview
What is a Controller in Angular world? Controller is a set of JavaScript functions bound to a scope. ng-controller directive tells the Angular to instantiate the new controller object and injects the new scope as a dependency. It contains the…