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