Vue essentials - Custom events
We're now familiar with using props as a mechanism for passing data from a parent to a child. And we know that props are specifically designed to be a one-way channel to ensure that the app state is predictable.
But what if we need to send data in the opposite direction, from child to parent? The mechanism that Vue provides for this is custom events, which will be the subject of this lesson.
Click to load comments...