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