I am currently in the process of updating some older code, transitioning to Vue as a replacement. Everything has been going smoothly except for one specific table that is templated using handlebars.
With handlebars and nested {{each}}
loops, I can easily navigate through the nested data structure while displaying the relevant information in table rows. Here's an example of this functionality using handlebars: https://jsfiddle.net/6dsruo40/1/
However, I am struggling to achieve the same result using Vue with its v-for
directive.
You can see my current progress on this issue in the following fiddle: https://jsfiddle.net/cj7go6bv/
I am unsure how to iterate through the data structure in Vue while maintaining the structure of the <tr>
elements similar to what is done in handlebars.
Below is the flexible data structure that I am working with:
[Your custom data here]
The Vue code I have implemented so far is quite basic:
[Your Vue component code here]
And here is the corresponding template:
[Your Vue template code here]
If anyone can provide guidance on how to achieve a similar table display in Vue as handlesbars, I would greatly appreciate it. Thank you!