[Vuejs]-List rendering in vue js

0👍

Inside that v-for, you can do another one to display the properties of your answers object.

0👍

Maybe you can do something like this

<div v-for="answerKey in Object.keys(answers)">
  {{ answerKey }}: {{ answers[answerKey] }}
</div>

This will render answers like this:

a: 4
b: 6
c: 10

Leave a comment