ng-if add class angularjs code example Example: add classon ng if [ngClass]="{'my-class': step === 'step1'}"