Augular JS in the various ng-body: 1. Ng-disabled= "A state: Not available in this state" example:%button.btn.btn-2 (ng-disabled= "!activity_name") Create//"Activity_name" is a value that can be judged, When the value is true, the button is displayed normally; When flase, the button is gray and not 2. Ng-tap= "a function: trigger when clicked"%button.btn.btn-2 (ng-tap= "create_activity ()") Create///When click Create, the Create_activity () function is called, You need to define its function3 in Controller.js. Ng-change= "a function: trigger 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 of 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