mattelen / vue3-runtime-template

Vue component for compiling templates on the fly using a v-html like API
MIT License
47 stars 12 forks source link

Compile component defined with "is" #6

Open nztomas opened 2 years ago

nztomas commented 2 years ago

Hi first of all thank you very much for the work, it (almost) works for me!!!

I have external HTML where components are defined as

<div is="componentname"></div>

And they are not compiled ;/

when I defined the component as

`

`

it works.

Any chance for adding support for the "dynamic" components please? Thanks!

richardtallent commented 2 years ago

I haven't tested, but you'd probably need to do <component :is="componentName"/>, not <div>.