Closed basepack closed 4 years ago
The difference with the above and your example is that Caleb is loading in the SVG in JS while your example places the SVG inside the HTML element which would lead to invalid HTML being generated.
This is a bit out of scope of the package I'm afraid, sorry.
Hi guys,
After some fiddling and reading these links https://calebporzio.com/using-inline-svgs-in-vue-compoments/ and https://laravel-mix.com/extensions/vue-svgicon I thought it could be easier if you just import the generated HTML into you component.
In blade view:
Please note the missing
:
beforeicon
.In Vue:
Is it an idea to document this approach for Vue in the readme?