In Vue, the parent-child component relationship can be summarized as props down, events up. The parent passes data down to the child via props, and the child sends messages to the parent via events…
Pass Data Between Parent and Child Components
props and $emit
Using props to share data from parent to child
Emitting custom events to share data from child to parent
parent.vue
<template> <div style="padding: 10px 10px 10px 10px"> <h2>This is the parent page</h2> <div> <button @click="onSendClick">Send to Child</button> </div> <div> Received from child by emit: {{receiveFromChild}} </div> <Child :name="childName" @receiveFromChild="onReceiveFromChild"/> </div> </template>