AngularJS commands are extended HTML attributes with the prefix ng -. The ng-app command initializes an AngularJS application. The ng-init command initializes application data. The ng-model command binds application data to HTML elements. AngularJS learning notes basic commands (init, repeat)
Ng-init initialization variable
{Name + ',' + age }}
Ng-init initialization object
Ng-init initializes the Array
Ng-controllerFirst Name:Last Name:Full Name: {firstName + "," + lastName} Full Name:
Ng-repeat traversal without repeated Sets
Ng-repeat
Ng-repeat traversal object
Ng-repeat traverses objects (in the original order)
Ng-repeat traversing objects (detailed description of attributes)
Student ID: |
: |
Is it an odd number? |
Is it an even number? |
Ranking Top? |
Minimum ranking? |
Ranking center? |
Ng-repeat start/end
Student ID:
:
The above is all the content of this article. I hope you will like it.