Angular has a very handy $first
(and $last
) variable for use when implementing an ng-repeat
. Along with ng-class
, the following allows you to apply a style to all but the first item in the iteration. You can negate the expression with !
as you would expect.
Convenient.