I am importing SVG with webpack Raw-loader. It means I want to embed the actual SVG XML inside my markup, as it is.
I am trying to do the following:
<template>
<div>
{{svgLoader}}
</div>
</template>
<script>
import svgLoader from '../assets/loader.svg'
export default {
data: function () {
return {
svgLoader
}
}
}
</script>
However, I get the entire SVG XML as pure string and it doesn't get converted to the actual image.