Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vuejs nested v-for

<div v-for='(obj, key, index) in secondPanelDetails'
  v-bind:key='index'
  class='detail-wrapper'>
  <span>{{ key }}:</span>
  <span v-if='Array.isArray(obj)'>
    <div v-for='(el, index) in obj'
      v-bind:key='index'>
      {{ el }}
    </div>
  </span>
  <span v-else>{{ obj }}</span>
</div>
Source by forum.vuejs.org #
 
PREVIOUS NEXT
Tagged: #vuejs #nested
ADD COMMENT
Topic
Name
1+6 =