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