ngif add class angular code example Example: ngif add class [ngClass]="{'my-class': step === 'step1'}"