Closed dennisbaskin closed 6 years ago
Referencing issue: https://github.com/karol-f/vue-custom-element/issues/118
Thanks, will look at it soon!
Released in @3.1.0 (https://github.com/karol-f/vue-custom-element/releases/tag/v3.1.0). Thanks for the PR!
Thank you! 😸
This PR adds the following functionality (notes taken from docs):
Using Template Tags
To use template tags to add content without necessitating the need for an element wrapper, you can follow the following pattern:
You would need to add the
slot
attribute (not avue-slot
) and provide anid
attribute that matches the name of the slot you wish to add content to.Passing Custom Elements Inside Slots
When passing custom elements inside of slots, you may get errors that warn about
Unknown custom element
. There are two ways around this.Add your custom element to a list of ignored elements in the vue config:
Make sure the elments being inserted into another element are created as custom elements first: