'My emit doesnt work, I cant send any data to parent
This is my code - child:
<a-camp :camp="camp.name" @click="$emit('camp-selected', camp)" />
export default {
emits: ['camp-selected'],
...
parent:
<a-camp-select @camp-selected="campSelected(camp)"></a-camp-select>
When I try emit without -camp- parameter it works, I can console log test, but when I add -camp-, I cant get it to parent, I also try console log camp in child component and it works. So there is problem somewhere in the middle. Any hints?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
