Skip to content

Instantly share code, notes, and snippets.

@jigarzon
Created September 12, 2019 17:55
Show Gist options
  • Save jigarzon/cff16656c93ac8f2798eaad6acb006ff to your computer and use it in GitHub Desktop.
Save jigarzon/cff16656c93ac8f2798eaad6acb006ff to your computer and use it in GitHub Desktop.
import Vue from 'vue';
import {Quasar} from 'quasar';
import wrap from '@vue/web-component-wrapper';
import MyQuasarComponent from './components/MyQuasarComponent';
window.onload = function() {
Vue.use(Quasar);
const CustomElement = wrap(Vue, MyQuasarComponent);
window.customElements.define('my-quasar-component', CustomElement);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment