Listening to Child Component Events
Learn how Vue.js components can listen to child components for events.
We'll cover the following...
A child component is a component that is plugged into another component. The child component and parent components both have their own methods
and event handlers. All events in the child components are handled by the child component itself. Similarly, the parent component is responsible for its own event handling. However, sometimes the child component may need to communicate with the parent component. In this lesson, learn about how a parent can listen to events from its child component.
$emit
an event
Vue.js enables you to launch an event so that it can be listened to by the parent component. In order to make the parent component listen to the child, the child component must ...