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