[Vuejs]-Vue 2 – How to v-for a property from an array that is inside an object

0👍

<ul v-for="(i, index) in girlsList" :key="index">
  <li v-for="(item, index) in i.TimeMode" :key="index">
    {{ item.time }}
  </li>
</ul>

0👍

GirList and TimeMode are arrays, so you need do a for beetween both (two for) or put a position in TimeMode array:

<li v-for="(item, index) in girlsList" :key="index">
    {{ item.TimeMode[0].time }}
</li>

Leave a comment