Answers for "ng class multiple classes angular 8"

3

Angular 8 ngClass If

[ngClass]="{'my-class': step=='step1'}"
Posted by: Guest on February-28-2020
1

Angular 8 ngClass If

[ngClass]="(step=='step1')?'my-class1':'my-class2'"
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

Code answers related to "ng class multiple classes angular 8"

Browse Popular Code Answers by Language