Using the egoist/vue-html plugin to render HTML works perfectly with standard HTML content, but encounters issues when trying to include a component tag.
When attempting to add the Breadcrumb
component in the template, it fails to work. Can anyone pinpoint what might be causing this error?
This is my current setup:
<script>
import Breadcrumb from '~components/Breadcrumb'
import Vue from 'vue'
import HTML from 'vue-html'
Vue.use(HTML)
export default {
data () {
return {
html: '<div><Breadcrumb/></div>'
}
},
render (h) {
return this.$html(this.html)
},
components: {
Breadcrumb
}
}
</script>