ng Class true and else condition code example Example: add classon ng if [ngClass]="{'my-class': step === 'step1'}"