[Vuejs]-Vuejs axios api nested array display data in template

0๐Ÿ‘

new Vue({
  el: '#app',
  data() {
    return {
      json: {lastUpdate: 1571616000, language: 'en', data: [ { itemId: '1e3ac1f-6f1ddb0-583cac2-474acb6', item: {name: 'Dark'} } ]}
    }
  }
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
  <div v-for="parentItem in json.data">
    {{parentItem.item.name}}
  </div>
</div>

Leave a comment