0👍
In the parent component you need to catch the event that is being emited (@input
) and trigger a method afterwise. So @input="doThis(indexOrEvent)"
inside doThis
you push the element to the array.
Also I think that the correct event should be @clicked
but Im not sure so I don’t want to give an strong opinion on that topic
- [Vuejs]-In Vuejs i have to delete a section when i click on "X" but there is some error with it
- [Vuejs]-Problems passing parameters in winds in vue js
Source:stackexchange.com