angular ng class with condition code example Example: ngclass condition [ngClass]="(step=='step1')?'my-class1':'my-class2'"