Code: https://github.com/cbsmerveguel/ionicblank
Hi all,
I am very new at vuejs and vuejs with ionic. I wanted to give it a try with a master-detail view, in which at master page a table will be located, and in the detail view the details of the selected item from that table. I am following this youtube video in parallel to do it. The vuex store management worked well, and now I am able to get the details of the selected item, however it came with 2 separate issues:
After navigating into the 2. item and navigating back to home
Any comment, help would be very much so appreciated.
Code has been shared in the repo: https://github.com/cbsmerveguel/ionicblank
Here is the line of code causing the error.
data.id = inspectionId
is an assignment, so whatever you click becomes assigned to the first object of your tableData
array. What you mean to do is a comparison:
data.id === inspectionId