The __________ in AngularJS MVC architecture is responsible for updating the view whenever the model changes.

  • $scope
  • Controller
  • Directive
  • Service
In AngularJS, the $scope is responsible for updating the view whenever the model changes in the MVC (Model-View-Controller) architecture. $scope acts as a bridge between the Controller and the View, allowing them to communicate and stay in sync. It holds the data that is exposed to the view and provides a mechanism for two-way data binding. Understanding $scope is essential for building interactive and real-time AngularJS applications.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *