You can use the filter orderBy:'id':desc to control whether the sorting is ascending or descending order. The following code is easier to understand if you read it in the order of 3-2-1. 1. Click once to change desc
序号
2. Set desc initialization value = 0 in appController
html
Change to:js
You can use the filter orderBy:'id':desc to control whether the sorting is ascending or descending order.
The following code is easier to understand if you read it in the order of 3-2-1.
1. Click once to change desc
2. Set desc initialization value = 0 in appController
3. Add sorting conditions to the filter