ngclass in ternary condition code example
Example 1: ngclass condition
[ngClass]="(step=='step1')?'my-class1':'my-class2'"
Example 2: ngclass ternary
<div [ngClass]="varA === varB ? 'css-class-1' : 'css-class-2'">
[ngClass]="(step=='step1')?'my-class1':'my-class2'"
<div [ngClass]="varA === varB ? 'css-class-1' : 'css-class-2'">