Model-View-Controller or MVC, MVC is a common name, a software design pattern used to develop web applications. Model-View-Controller mode consists of the following three parts:
Model/Model - A minimum level responsible for maintaining data patterns.
View/View - Responsible for displaying all or data to the user's portion.
Controller/Controller - Software code controls the interaction between Model and View.
MVC is popular because it isolates application logic from the user interface layer and supported focus separation. The controller here receives all requests for the application, any data required for preparing the view. View, using the prepared controller, produces data for a final decent response. MVC abstraction can be represented by graphs as follows.
Model - model
The model is responsible for managing the data of the application. It responds to requests from the view, and also responds to instructions to self-update from the controller.
View - view
In a specific format, the display data is triggered by the controller. They are script-based template systems such as JSP, ASP, PHP, which are very easy to integrate with AJAX technology.
Controller - controller
The controller is responsible for responsive to user input and executing interactive data model objects. The controller receives the input, it verifies the input, and then performs a business operation that modifies the state of the data model.
AngularJS is an MVC framework. In the following chapter, let's see how AngularJS uses the MVC method.
The above is the AngularJS MVC architecture. We will continue to organize relevant information in the future. Thank you for your support for this website!