Looking for assistance with a component I have:
<BasicFilter></BasicFilter>
It contains a select element:
<select @change="$emit('onSortName', $event)">
<option value="asc"> A..Z</option><option value="desc"></select>
I am trying to pass the selected value to a function in the parent component:
onSortName(event) {
if (event.target.value == 'desc') {
do something
}
}
Any suggestions on how to pass the event.target.value
to the parent function?