AngularJS Getting Started

Source: Internet
Author: User

What is Angularjs

Angularjs is Google's Open source JavaScript MVC framework that makes up for the lack of HTML in building applications,

    • It makes web development and testing easier by extending the HTML vocabulary using the instruction (directives) structure, which enables developers to use HTML to declare dynamic content.
    • Binding data to HTML via an expression

AngularJS can build a single page application (Spas:single page applications).

ANGULARJS directive

AngularJS extends HTML attributes with the prefix ng-through ng-directives . The main are:

    • The ng-app directive defines an AngularJS application.
    • The ng-model directive binds the element value (such as the value of the input field) to the application.
    • The ng-bind directive binds the application data to an HTML view. Has the same effect as expression {{expression}}
ANGULARJS-expression

The AngularJS expression is written in double curly braces:{{expression}}.

AngularJS expressions bind data to HTML, which is similar to the ng-bind directive. AngularJS will "output" the data where the expression is written.

Simple Angularjs Example
<! DOCTYPE html>

AngularJS Getting Started

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.