Closed alexeysmith closed 5 years ago
document.registerElement("my-element", {
prototype: /.../,
extends: 'div'
});
And then in html: <div is="my-element"></div>
@alexeysmith why wouldn't you do this inside your component?
I want vue-custom-element
to be as thin wrapper as possible and not introduce many Vue specific ideas.
Can you explain it further, with an example?