ng if in angular to add class code example Example: add classon ng if [ngClass]="{'my-class': step === 'step1'}"