Responsibilities of Controllers in Angularjs | Angularjs Interview Question | Angularjs Tutorial | Angularjs Programmer Guide

,
Angularjs works on model-view-controller pattern. Angularjs Controllers have three responsibilities in your app:

  1. Set up the initial state in your application’s model
  2. Expose model and functions to the view (UI template) through $scope
  3. Watch other parts of the model for changes and take action