Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

152
Views
iterate through object which has another array in vuejs

sorry my question feels lame but i need help. How can i iterate though something like:

`    <template slot-scope="{data}">
     <vs-tr v-for="(group, index) in data" :key="index">
     <vs-td :data="data[index].photo">
     <img radius :src="data[index].photo" width="30" height="30" />
     </vs-td>
     <vs-td :data="data[index].groupName">{{ data[index].groupName }}</vs-td>
     <vs-td :data="data[index].groupLeader">
     <p>{{ data[index].groupLeader[0].firstName }} {{ data[index].groupLeader[0].lastName }}</p>
     </vs-td>
     <vs-td :data="data[index].totalMembers">{{ data[index].totalMembers }}</vs-td>
     <vs-td>`<br><br>`


  

when the data looks like this:

` 0:
    groupDescription: "DBVAJCVKsdfvs"
    groupLeader: Array(2)
    groupName: "ABDHBDS"
    members: Array(5)
    photo: 
    totalMembers: 5
    _id: "614f6df366fca20018344434"`

And i need to display groupLeader firstName and last name

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!