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
- Download Load Angular.js Library
<script type= "Text/javascript" src= "Http://code.angularjs.org/1.2.3/angular.min.js" ></script>
- 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
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--