ngif add class
snippet in html

Angular 8 ngClass If

user7698

[ngClass]="{'my-class': step=='step1'}"

Angular 8 ngClass If

user5851

[ngClass]="{'my-class': step=='step1', 'my-class2':step=='step2' }"

ngif add class

user5361

[ngClass]="{'my-class': step === 'step1'}"