angular ng class multiple classes code example
Example 1: Angular 8 ngClass If
[ngClass]="{'my-class': step=='step1'}"
Example 2: multiple ngclass
<section [ngClass]="{'class1':condition1, 'class2': condition2, 'class3':condition3}" >
Example 3: ng class multiple class names
<!-- notice expression1 used twice -->
<div ng-class="{class1 : expression1, class2 : expression1}">
Hello World!
</div>
Example 4: angular bind to class or ngClass
<div [ngClass]="{'extra-sparkle': isDelightful}">