angular.js - How to implement li in angularJs to only display the first 4 data, and want to use ng-repeat to achieve it
某草草
某草草 2017-05-15 16:54:37
0
1
464

How to implement li in angularJs to only display the first 4 data. I want to use ng-repeat to achieve it. But ng-repeat will traverse all the data by default. I hope to only list the first 4. Is there any way to achieve this?

某草草
某草草

reply all(1)
某草草
<p ng-repeat="item in items | limitTo: 4">
    <p>....</p>
</p>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template