0π
β
In your child component use the props
property to receive parent data like:
<script>
export default {
props: ['msg'],
data: function () {
return {
}
}
}
</script>
Read more about this here
Source:stackexchange.com