[Vuejs]-Vue.Js : How to loop through child objects in JSON

0👍

Ah.. The issue was:

  • My second to item was not in an array: "to": "ntregensoe1@bluehost.com". So when I was getting the value of 24 I was just assuming the code was not working.

When I fix that in the JSON I can then use:

<td>{{ data.to[0]}} <span v-if="data.to.length > 1">+ {{ data.to.length - 1 }}</span></td>

Leave a comment