[Vuejs]-How to get data from JSON? My v-for loop is not working

2👍

Your data should be called list:[], not lists:[] to match your template. Or rename your template to in lists.

1👍

For each dada in lists, there is no dada.lists.hora or dada.lists.preu. There is only dada.preu or dada.hora.

Each dada in lists is like saying lists[0] (or whatever index).

So try changing the template to just {{data.hora}} etc as needed (after doing the list/lists adjustment per above).

👤LShapz

Leave a comment