Example emits Option

Custom events received from child component:

ChildComp.vue

Click the button to trigger the custom event with the "Hello!" message up to the parent component using the $emit() method.