conditional class angular 11 ng-class code example
Example 1: ngclass condition
[class.my-class]="step === 'step1'"
Example 2: conditional classes angular
<div
[className]="isActive ? 'active' : 'inactive'">
</div>
[class.my-class]="step === 'step1'"
<div
[className]="isActive ? 'active' : 'inactive'">
</div>