I created a unique shape using html/Css and now I want to fetch its color from a data service.
[ngStyle]="{'background-color':'#0B0036'}"
Everything works perfectly when I use the above code. However, when I try either of the following:
[ngStyle]="{'background-color':'{{Card.lesson.color}}'}" (with or without quotes)
or
[ngStyle]="{'background-color':'Card.lesson.color'}"
I encounter errors or no color is displayed at all.
Could you please advise on the correct syntax for achieving this?