Data transfer of sibling components
In fact, brothers pass on value from the son to the father, and then the father passes on to another son. Realize the brothers pass by value.
I want the English letters on the right to switch with those on the left.
The first one: Click the letter on the right and switch on the left.
The second one: slide the letters on the right, and follow the slide on the left.
- Bound event
- Outgoing events
- Receive event
- Invoke methods based on events
- Return subcomponent
- Receive data and listen
important point:
:ref $refs in vue How to access DOM elements in Vue