vuejs pass data to router-view
<template>
<div>
<router-view :dataProp="parentData"></router-view>
</div>
</template>
<script>
export default {
data() {
return {
parentData: "This is data from the parent component"
};
}
};
</script>