Answers for "add a class to an element at index-1 in angular"

2

ng class multiple class names

<!-- notice expression1 used twice -->
<div ng-class="{class1 : expression1, class2 : expression1}">
    Hello World!
</div>
Posted by: Guest on May-21-2020
-1

angular bind to class or ngClass

<div [ngClass]="{'extra-sparkle': isDelightful}">
Posted by: Guest on October-29-2020

Code answers related to "add a class to an element at index-1 in angular"

Browse Popular Code Answers by Language