Angular.js Learning One--

Source: Internet
Author: User

The following is the first contact with the angular project to organize, the subsequent time will be continuously modified and continuously updated

In order to use Angular.js, all applications must do 2 things first

  1. Download Load Angular.js Library
    <script type= "Text/javascript" src= "Http://code.angularjs.org/1.2.3/angular.min.js" ></script>
  2. Use the Ng-app directive to tell angular which part of the DOM should be managed

I. Some of the most commonly used directives in angular

  • Ng-app

The ng-app instruction is used to tell the ANGULARJS application that this element is the root element, that all ANGULARJS applications must have a root element, that only one ng-app instruction is allowed in the HTML document, and that only the first one is used if there are multiple Ng-app instructions.

  • Ng-bind
  • Ng-model
  • Ng-controller
  • Ng-click
  • Ng-repeat
  • Ng-show
  • Ng-disabled

Angular.js Learning One--

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.