You can use [ngClass] or [class.classname], both will work the same.[class.my-class]="step==='step1'"
OR
[ngClass]="{'my-class': step=='step1'}"
Both will work the same!
You can use [ngClass] or [class.classname], both will work the same.[class.my-class]="step==='step1'"
OR
[ngClass]="{'my-class': step=='step1'}"
Both will work the same!