Closed ZeronoFreya closed 3 years ago
// father <template> <children ref="childRef"/> </template> <script setup> import { onMounted } from "vue"; import children from "./children" ref: childRef = null onMounted(()=>{ console.log(childRef); // output: {} }) </script> // children <template> <div>div</div> </template> <script setup> const demo = () => { console.log("demo"); } </script>
How to call the demo method ?
Please use our discord server for questions
How to call the demo method ?