0๐
โ
I managed to do it by adding the function in the "v-on" in @currencyType, and passing as parameter the values โโi received from the children in "$emit".:
<app-select-coin
@coin="body.value = $event"
@currencyType="myFunction(body.currencyType = $event)"
:data="body"
/>
methods :{
myFunction(ct) {
}
}
Source:stackexchange.com