0👍
On your “viewAndUpdateDish” component after your update logic you can do the following:
this.$emit('clickedUpdate',yourResturantId);
then on your parent component make sure you are listening to the “clickedUpdate” event:
<update-dish @clickedUpdate="loadDishes($event)"></update-dish>
.
- [Vuejs]-How can I get all data from multiple pages from my api?
- [Vuejs]-Import and use a npm package in VueJs Project
Source:stackexchange.com