[Vuejs]-Vue PWA Template, using SVG sprites

0👍

From https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href

SVG 2 removed the need for the xlink namespace, so instead of xlink:href you should use href.

So try this:

<svg><use href="../assets/fa-regular.svg#bars"/></svg>

Leave a comment