alexjoverm / v-runtime-template

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

Access to global components #43

Open RobWalker opened 5 years ago

RobWalker commented 5 years ago

I have this working in a Vuetify app, but in order to use any of the Vuetify components in the template I need to include them in the component I have that uses it:

import { VBtn, VCard, VCardActions, VCardTitle, VImg } from "vuetify/lib"
...
    components: {
       VBtn, VCard, VCardActions, VCardTitle, VImg, ...

This is pretty long winded (and there are a lot of them).

Is there a way to be able to access all the global templates from the main Vue instance without referencing them explicitly here.

alexjoverm commented 5 years ago

Hi Rob!

For now this feature is not available, but feel free to investigate about it or create a PR if needed