Answers for "the correct syntax for adding an ngclass property binding to current class in angular"

3

Angular 8 ngClass If

[ngClass]="{'my-class': step=='step1'}"
Posted by: Guest on February-28-2020
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
0

Angular 8 ngClass If

[ngClass]="{1:'my-class1',2:'my-class2',3:'my-class4'}[step]"
Posted by: Guest on February-28-2020
-1

angular bind to class or ngClass

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

Code answers related to "the correct syntax for adding an ngclass property binding to current class in angular"

Browse Popular Code Answers by Language