The MVC architecture of ANGULARJS tutorial _angularjs

Source: Internet
Author: User

Model-View-controller or MVC,MVC is a common term, a software design pattern for developing Web applications. The model-view-controller pattern is comprised of the following three components:

Model/model-A minimum level responsible for maintaining the data pattern.

View/view-is responsible for displaying all or data to the user's section.

Controller/controller-Software code controls the interaction between model and view.

MVC is popular because it isolates the application logic from the user interface layer and the supported concerns. The controller here receives all requests for the application and any data needed to prepare the view. The view, using the prepared controller, produces a final decent response to the data. MVC abstractions can be graphically represented as follows.

Models-Model

The model is the data that is responsible for managing the application. It responds to requests from the view and also responds to instructions that update themselves from the controller.

views-View

In a specific format of the demo data, the controller decides to trigger the display data. They are scripting based templating systems, such as jsp,asp,php, that are easy to use with Ajax technology integration.

Controller-Controller

The controller is responsible for responding to user input and performing interactive data model objects. The controller receives input, validates the input, and then executes the business operation that modifies the state of the data model.

ANGULARJS is an MVC framework. In the next section, let's see how Angularjs uses the MVC method.

The above is the ANGULARJS MVC architecture, follow-up to continue to collate relevant information, thank you for your support of this site!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.