How to change data of the parent component, child-to-child?

<parent :data="a">
 <child1 :data="a.b">
<child2></child2>
</child1>
</parent>


In the component Parent, I make an ajax request and receive the data a, pass a.b Child1, out b.c to Child2. In Child2 I update them, say, through user input. Vue does not allow them to change from a child:

Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop''s value. Prop being mutated: "c"

For example, a Parent can be a page with names of people, Child1 - list name, Child2 - list item names (one name).
If you use $emit, it will have to be routed through both child component and make to the parent? There are other ways realizovati it?
June 10th 19 at 16:23
1 answer
June 10th 19 at 16:25
Vuex or Event bus. The second will be easier

Find more questions by tags Vue.jsJavaScript