[Vuejs]-How to route data to a new page to fill a form using Vue and Vuetify?

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.

Leave a comment