In Angular 1, the code below works well.
But when I try to do simi
You can try the followings.....
For ternary operator use:
[ngClass]="condition1==condition2?'class-1':'class-2'"
For multiple condition use:
[ngClass]="{'class-1':condition1==condition2, 'class-2': condition3==condition4}"
thnks...