Can anyone advise on how to combine multiple conditions in Angular? I am currently using Angular 12.
For example, I have been using the following syntax:
[ngClass]="condition1 ? 'className1' : 'classname2'"
This works fine for a single condition. But how can I incorporate multiple conditions?
[ngClass]="condition1 ? 'className1' : 'classname2' && conditionX ? 'classNameY' : 'classNameZ'"
It seems that only the first condition is being checked, and anything following the && operator is not being evaluated. Any suggestions on how to address this issue?