AngularJS: giving items in ng-repeat a serialized class -
i have simple ng-repeat, , create html serialized class this:
<ul> <li class="item item-1"></li> <li class="item item-2"></li> <li class="item item-3"></li> ... </ul>
i can't seem find how it. i've tried far, among other things:
<ul> <li ng-repeat="item in items" class="item" ng-class="item-{$index}"></li> </ul>
it doesn't work.
Comments
Post a Comment