Course lesson

Listen for Custom Emitted Events in Vue 3 Parent Components

Sometimes we need a child component to change the state of its parent component.

Duration
2 min
Access
Included
Transcript
Retained from source evidence

Sometimes we need a child component to change the state of its parent component.

We can do that by emitting an event using the globally defined function, defineEmits, and listening for it where the component is used.