Example $emit() Method

Custom events received from child component:

ChildComp.vue

Click the button to trigger the custom event up to the parent component using the $emit() method.