ANGULARJS:JAVASCRIPT MVC Framework

Source: Internet
Author: User
Tags bind

In June, Google released the Angularjs 1.0 Stable Edition,

and claim: ANGULARJS allows you to extend the syntax of HTML to clearly and succinctly represent the components in your application, and to allow standard HTML to be your template language, Angularjs can automatically from owning JavaScript via bidirectional data binding Synchronizes data in the UI (view) of the (model).

Start Contact Angularjs is in April to the new project team, when Angularjs is still in the 0.8 unstable version, the project has been used, and this framework has been applied to the entire UI side of the project, the server is also an unstable web API, really admire the courage of the team, the enthusiasm for the new technology , fortunately, we all have a good ride, this is the first time to try a project full of unstable technology.

Back to the point, first look at an official example:

<!doctype html>   

Demo:

Your Name:

Hello {{Yourname | | ' World '}}!

Note: Entering any character in the input box will immediately bind to the update to the page.

Here the Ng-model instruction (Directive) binding is the Model scope property yourname.

and use an expression to bind yourname to the text information.

This only requires any DOM time listening because the ANGULARJS is built in.

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.