angular docs ng class conditionally apply styles code example Example: add classon ng if [ngClass]="{'my-class': step === 'step1'}"