Example expose Option

Using the exposed 'createMessage' method from the child component to write a message in the child component:

ChildComp.vue

Message from parent component: