vue-svg-loader
vue-svg-loader copied to clipboard
Dynamically add class to path in SVG
I have a map svg with paths to each country, and I'd like to be able to add a class to a path based on actions in the component. For instance, if there is a array object of selected countries, I can then add a "selected" class to the map paths with the ID's of that country and control the selected fill via css. is this possible?