I am looking to customize the ngstyle
<p class="is-discount" [ngStyle]="{
'background-color':
bicycle.discount > 70
? 'red'
: bicycle.discount > 60
? 'pink'
: bicycle.discount > 50
? 'orange'
: null
}">
-{{ bicycle.discount }}%
</p>
<p [ngStyle]="{
'color':
bicycle.discount > 70
? 'red'
: bicycle.discount > 60
? 'pink'
: bicycle.discount > 50
? 'orange'
: null
}">
{{
bicycle.price - (bicycle.discount / 100) * bicycle.price
| currency: "EUR"
}}
</p>