0๐
- You should not change the parent from child.
- To make communication between parent and child (and child->parent as well) you can/should set up the events.
- Emit the event in child component. Nice examples here: https://v2.vuejs.org/v2/guide/components.html#Using-v-on-with-Custom-Events
- Listen to event in your parent using
<child-component @yourEventName='eventHandler(data)'>
- Handle data in your parent, so add
eventHandler(data)
into your methods and do whatever you want with your data.
Source:stackexchange.com