I am working with a NgStyle Tag and would like to incorporate multiple conditions, but I am encountering issues where it doesn't work or produces errors.
Here is the code snippet that I have been experimenting with:
<div class = "card" [ngStyle]="{'height': Card.duration.Hours == 1 ? '130px': height}"
[ngStyle]="{'height': Card.duration.Hours < 1 ? '100px': height}"
>
Currently, only the first condition seems to be effective. When I attempt to combine these conditions, error messages are displayed. What is the best approach for implementing multiple conditions?