Hi all,
I'm trying to set the background-color style of an element using a template. I have template html code that looks like:
<div class="picker-flex-box">
<div *ngFor="let color of colors"
class="color-swatch"
style="background-color: {{color}}"
</div>
</div>
where colors is a list of color strings in the hex RGB format. Running the app, I get a lot of warnings like:
is this actually an unsafe string? If so, what should I do differently to set the color of this element? I've tried using the rgb() format and got the same results.
Thanks a lot,
Forrester