Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created August 10, 2021 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/eff1c3e9a02aeb69fc5da285b7e71d6a to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/eff1c3e9a02aeb69fc5da285b7e71d6a to your computer and use it in GitHub Desktop.
import { defineCustomElement } from 'vue'
const MyVueElement = defineCustomElement({
// normal Vue component options here
})
// Register the custom element.
// After registration, all `<my-vue-element>` tags
// on the page will be upgraded.
customElements.define('my-vue-element', MyVueElement)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment