Trending News
Home / Web Development / Angular Js / AngularJS – MVC Architecture

AngularJS – MVC Architecture

MVC or Model View Controller; it is a software design pattern for developing web application. The MVC contain three parts. They are:

  1. Model
  2. View
  3. Controller

MVC is popular because it isolates the application logic from the user interface layer and supports separation of concerns. In the MVC controller accept all request for application and its work in model and display to view.  The view then uses the data prepared by the controller to generate a final presentable response. The diagramatically representation of MVC as follows.



Model

The main responsible in the model is managing application data.

View




The view helps to present the data in the application to the user.  They are script-based template systems such as JSP, ASP, PHP and very easy to integrate with AJAX technology.

Controller

The controller responds to user input and performs interactions on the data model objects. It is responsible to control the relation between models and views. The controller receives input, validates it, and then performs business operations that modify the state of the data model.  It responds to user input and performs interactions on the data model objects.

Loading Facebook Comments ...
Social Media Auto Publish Powered By : XYZScripts.com