I am trying to access data from a single-file component in Vue, but can\'t find any way of doing it. I have tried using $emit, but can\'t get thath to work eith
$emit
You can use the special attribute ref:
<child-comp ref="child"></child-comp>
In JS:
vm.$refs.child.YOUR_DATA
Hope this helps!