I don't understand how to pass data loaded by a 'route Component' to a 'subRoute Component'.. (I'm using Vue.js with Vue-router)
My router looks like that:
router.map({
'/a': {
component: A,
subRoutes: {
'/b': {
component: B
},
'/c': {
component: C
}
}
}
});
I just want to share data loaded by component A with component B and C.
Thanks in advance !
vuexis what you want: github.com/vuejs/vuex