I want to change the background color of a couple of divs based on the choosen color from a colorpicker.
I have tried it using this:
<div ng-style="[id^='color']{background-color: '{{rgbPicker.color}} !important}'">
<div bind-html-compile="body">
<div id="color1"></div>
<div id="color2"></div>
<div id="color3"></div>
<div id="color4"></div>
</div>
</div>
I have the right color code in rgbPicker.color (hex code), but the color is not changing. How can I make this work?
#before the color value#is already added by the colorpicker.