Условие Ngclass
[ngClass]="{'my-class': step === 'step1'}"
Philan ISithembiso
[ngClass]="{'my-class': step === 'step1'}"
[ngClass]="{'my-class': step=='step1'}"
[ngClass]="(step=='step1')?'my-class1':'my-class2'"
[ngClass]="(step=='step1')?'my-class1':'my-class2'"
[class.my-class]="step === 'step1'"
<div
[className]="isActive ? 'active' : 'inactive'">
</div>