I wrote a component like this one:
<template>
<div>{{ myData }}</div>
</template>
<script setup>
const myData = ref('')
const myFunction = () => {
console.log('test function')
}
</script>
In the devtools console, how to access myData or myFunction with $vm?
By dint of searching, I found!
$vm.setupState expose data and methods.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With