Can I use _instance.exposed.func() at Custom Elements? #11307
-
I' m generating custom elements by defineCustomElement(arg: VueComponent). document.getElementById('custom-element')._instance.exposed.func(); or class CustomElementHasMethods extends CustomElement {
methodName(arg) {
return this._instance.exposed.func(arg);
}
}
I know instantiating _instance has a few delay time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's an internal property (recognizable by the leading underscore), so we won't give you any guarantees that is stays stable. It's not very likely that we find a reason to rename or change it, though when we do, it won't be announced and your code will break suddenly. |
Beta Was this translation helpful? Give feedback.
It's an internal property (recognizable by the leading underscore), so we won't give you any guarantees that is stays stable. It's not very likely that we find a reason to rename or change it, though when we do, it won't be announced and your code will break suddenly.