I am learning angular to set style using angular way so I have create below code. I am trying to set background using below code - but its not working as expected. How to set background using below syntax with [style]? I am creating demo with angular 8.
<code>
<div [style.background-color]='red'>
a
</div>
</code>