0👍
There is 2 ways of doing this:
First, is to use Vuex to manipulate the array based in a global state.
Second, is to use the VueRouter like:
const router = new VueRouter({
routes: [
{
path: '/ComponentWhichReceivesData/:id/:domain',
components: {
default: ComponentWhichReceivesData,
},
props: {
// object mode, but it can be function mode
default: { id: 1, domain: "example"},
}
}
]
})
I’d recommend you to use the VueX way, because you’ll have more control manipulating data.
- [Vuejs]-Laravel VueJS – Input value array returns strings instead of array
- [Vuejs]-Unable to get data from foreign key table in Laravel Vue addressbook project
Source:stackexchange.com