Is it possible to use the $index of ng-repeat in the class name?
Example:
ng-class="{'hand-' + $index: true}"
Thank you!
You can use it like this:
ng-class="['hand-' + $index]"
Additionally, you can use the class attribute to interpolate the class value
class="hand-{{$index}}"
You can use within html class:
class="list-{{$index}}"
for Angular use:
ng-class="['hand-' + $index]"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With