condtional class angular code example Example: Angular 8 ngClass If [ngClass]="{'my-class': step=='step1'}"