[Vuejs]-VueJS Edit data from table in new page

0👍

In my opinion, you have three options:

  1. Like @lmarqs said you could use vuex, but it’s slightly overkilling if that’s the only use case.
  2. So you could use Custom Events, like @ittus explained it here, he also linked this tutorial.
  3. Or you use the router to build a url like yoururl.com/table/ELEMENT-ID and than you grab this id in the component and make a new request to your api (not a very good solution)

Leave a comment