Angularjs (modal, controller, view) _ AngularJS

Source: Internet
Author: User
This article records the usage instructions of the three modules (modal, controller, and view) of angularjs, so that beginners can learn angularjs smoothly. today, I will explain in detail the three major modules of angularjs: modal, controller, and view.

First, let's talk about the relationship between the three modules.

1. The data model (modal) mainly provides data. It does not operate directly with the view.

2. The controller saves the data provided by modal and operates with the view.

3. view is a view, that is, a page display.

4. In short, the controller is responsible for the communication between data and views, that is, the interface between the two. Their division of labor is clear and modularized.

1. How to use the data model (modal )?

Let's talk about the data model. Let's take a look at the example in the previous tutorial:

        
    Document     

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.