AngularJS Study Notes (i)

Source: Internet
Author: User

Angularjs is a front-end framework developed by Google, with only 1500 lines of angular.js dedicated to easing the pain of developers in developing AJAX applications.

ANGULARJS application: View is Dom,controller is the JavaScript class, model is stored in the object properties.

Data binding automatically synchronizes the data between model and view. The way angular implements data binding allows us to think of the model as the only trusted source of data in the program. View is always a projection of the model. Whether the model or view changes, it is automatically reflected to the other side, data binding is bidirectional. The template is compiled in the browser and produces a real-time updated view during the compilation phase. Model becomes the only real source of data in the program.

Angular's dependency injection simply takes what it needs without creating what they depend on. In short, the dependency injection relationship angular will intelligently help developers deal with it without the need for developers to worry about it.


Data binding

Ng-app indicates angularjs scope.

{{angular expression}} expression cannot have conditional branching, loops, throws an exception.

The Ng-model corresponds to the model of value in view.

<! DOCTYPE html>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6D/CE/wKiom1VsE0mQdkarAABKQ3Z52Cs580.jpg "title=" 1111. PNG "alt=" wkiom1vse0mqdkaraabkq3z52cs580.jpg "/>

Changes to input text are reflected in a timely manner below.

AngularJS Study Notes (i)

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.