Augular JS in the various ng-
Body:
1. Ng-disabled= "One state: Not available in this state" for example:
%button.btn.btn-2 (ng-disabled= "!activity_name") Create//"Activity_name" is a value that can be judged, when its value is true, the button is displayed normally; When flase, the button is gray and not point
2. Ng-tap= "one function: trigger when clicked"
%button.btn.btn-2 (ng-tap= "create_activity ()") Create///call Create_activity () function when click Create, need to define its function in Controller.js
3. Ng-change= "A function: triggers when there is a change"
%input (type= "text" ng-change= "Activity_name")//equivalent to watch function
4.ng-blind= "string"
%p (ng-blind= "greeting") //greeting is a string that can be defined in Controller.js
5. Ng-model= "Take a name"
%input (type= "text" ng-model= "Activity_name")//give input a binding
6. Ng-repeat= "element in array"
%li (ng-repeat= "name in Names") {{name}}//names is an array, Ng-repeat creates a copy of a set of elements once for each item in the array
7. Ng-show= "A judging condition: when its value is true, the button displays"
%button ("ng-show=" Judge ") returns//where Judge is a judgment, you can use the function return value, or pass a value directly
Augular JS in the various ng-