[Vuejs]-Export function from a component in Vue.js

0👍

Thanks Lawrence Cherone to solve my problem, there is the solution:
brn.vue component:

<button @click="$emit('click')"></button>

The main page

<btn @click="myFunction()"></btn>

Leave a comment