I am using Angular 6 and I have a simple div and want to set the background color of this div from inside the template. This works fine when passing normal colors. But this does not work with CSS Variables.
This example works
<div [style.background]="'red'">...</div>
This example does not work
<div [style.background]="'var(--some-css-var)'">...</div>