'Can I use data query in ejs inside html tag
<% tag.forEach(function(tag) { %>
<div class="badge bg-primary" style="color: <%=tag.fontcolor%>"><%= tag.name %>
<button class="deleteTag" data-id="<%=tag.id%>">X</button></div>
<% }) %>
I want to use tag.fontcolor for div style color
but I have problem which appears in this next image:
property value expectedcss(css-propertyvalueexpected)
If you can give me a hint on how to solve this problem, that would be grateful.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
