ngclass with condition angular 10 code example
Example 1: Angular 8 ngClass If
[ngClass]="{'my-class': step=='step1'}"
Example 2: conditional classes angular
<div
[className]="isActive ? 'active' : 'inactive'">
</div>
[ngClass]="{'my-class': step=='step1'}"
<div
[className]="isActive ? 'active' : 'inactive'">
</div>