Hot to access to x-data of an element from external js #1763
-
Hi Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The v3 replacement for |
Beta Was this translation helpful? Give feedback.
The v3 replacement for
document.getElementById('<element>).__x.$data
isdocument.getElementById('<element>)._x_dataStack[0]
but keep in mind that this is not the recommended way of getting data from a component. The recommended way is either using $store or via custom events with $dispatch