就是一个列表循环,第一条需要置顶显示,然后其他的在下面。我现在一个指令用了一个模板循环,实现不了啊,求救
http://stackoverflow.com/questions/19635636/first-in-ngrepeat
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-endReference: http://stackoverflow.com/questions/23627658/problems-with-ng-repeat-start
用ng-class
http://stackoverflow.com/questions/19635636/first-in-ngrepeat
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