angular.js - The first item in the ng-repeat loop is displayed differently than the others
巴扎黑
巴扎黑 2017-05-15 16:55:05
0
3
560

is a list loop, the first item needs to be displayed at the top, and the others below. I am currently using a template loop in one command, but it cannot be implemented. Please help

巴扎黑
巴扎黑

reply all(3)
黄舟

http://stackoverflow.com/questions/19635636/first-in-ngrepeat

phpcn_u1582

The following attributes are available in ng-repeat:

  • $index

  • $first

  • $middle

  • $last

  • $even

  • $odd

In addition, there are the following commands:

  • ng-repeat-start

  • ng-repeat-end
    Reference: http://stackoverflow.com/questions/23627658/problems-with-ng-repeat-start

我想大声告诉你

用ng-class

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template