0👍
The problem is that you’re inserting the inline SVG (via v-html
) after the Vue compilation step, so — as you’ve noticed — Vue never sees that content. Without more context, it’s hard to see how you could achieve what you want.
As an alternative, though, you could have all your cursors use currentColor
for the fill color
<path fill="currentColor">
and then simply set the CSS color
property of some containing element to the desired color
Source:stackexchange.com