This article mainly introduces AngularJS entry (using the ng-repeat command to implement loop output. If you need it, you can refer to the following loop output list. Many projects are implemented on the web server, after the front-end completes the template, the backend writes the jsp code. Both parties must work closely together to clarify the responsibilities. Some projects provide restful methods by the backend, And the frontend uses ajax to call its own loop. This is usually a large number of jquery strings, which is too intuitive. Some people have developed js templates and it is not good to go anywhere.
AngularJS is much better. The syntax is similar to JSP:
Ng-repeat directive
My Shopping Cart
Serial number |
Product |
Unit Price |
Quantity |
Amount |
Operation |
{$ Index + 1 }} |
{Item. name }} |
{Item. price | currency }} |
|
{Item. quantity * item. price | currency }} |
Remove |