Use ng-repeat to sequentially sort p according to the index value in the returnbanner from small to large. How to do it?
Ascending order:
<ul> <li ng-repeat="user in users | orderBy:user.index">{{user.name}}</li> </ul>
Reverse order:
<ul> <li ng-repeat="user in users | orderBy:user.index:'desc'">{{user.name}}</li> </ul>
Read more official documents...
Ascending order:
Reverse order:
Read more official documents...