I'm using vue2 to develop my project.
When the component mounts (or beforeMounts), it fetches initial data from vuex, and put it to component's data. After the user clicks the button, it triggers the parent's method. I need to get the child's data. How to get it?
the parent component have the handle methods which callbacks from the child component. the child component has the child2 component which has the data the parent component needs.
in html like:
<parent>
<child>
<child2></child2>
</chlid>
</parent>
I need to handle child2's data in parent's method. And the parent's handle method is the child's callback method.