Why is Angular. js so popular?

Source: Internet
Author: User

In this article, let's gradually find out why angular is so popular:

Angular. js is a MV * Model-View-Whatever. Whether it is MVC or MVVM, it is integrated with the model Drive View JavaScript framework. It is the SPAsingle-page-application launched by Google) application Framework, which adds a lot of magic changes to our web application development.

I can spend the whole day telling you why you have to try angular. js in a new project, but I think it's still a bit difficult to say.

Data Binding and scopes (Scope)

The first question that emerges first is: does angular support data binding?

Next let's take a look at angular. js Data Binding:

Edit in plucker

?
<body ng-app><span>Insert your name:</span><input type="text"ng-model="user.name"/></body>

In this code snippet, before explaining the details, I still want to try the following:

Note: Do not worry too much about ng-app at the moment.

As you can see, what I input in input will be displayed in the back echo. How does this work? In short, angular ng-model (

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.