Introduction
Custom events let components talk to each other in Vue. They help a child component send messages to its parent.
When a child component needs to tell its parent that something happened, like a button click.
When you want to keep components separate but still let them share information.
When building reusable components that need to notify their users about changes.
When you want to handle user actions in a parent component but trigger them in a child.
When you want to keep your app organized by passing events up instead of changing data directly.