Hi there, I'm curious about how Vue routing and the tree structure work together. In my setup, I have a parent router that contains both my router-view and header at the same level.
I want to be able to trigger some functions from my header component to a specific route called dashboard within the router-view.
For example: header.vue
<a href="#" @click.prevent="update()"> Click me to update the dashboard </a>
dashboard.vue
<p> {{datafrom filldata}} </p>
methods: {
fillDataToP() {
// Function to fill data
}
}
Do you think it's possible to achieve this functionality in Vue?