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

205
Views
¿Cómo puedo acceder a varios objetos en una matriz anidada y enviarlos todos al mismo tiempo usando Vue?
let app = new Vue({ el: "#app", data: { currentperson: -1, people: [{ nome: "Francesco Rossio", immagine: "img/profile1.jpg", oraUltimoMessaggio: "13:32", messaggiNonLetti: "2", visibile: true, messaggi: [{ date: '10/01/2020 15:30:55', text: 'Hei tu, sei molto carino, sai?', status: 'sent' }, { date: '10/01/2020 15:50:00', text: 'Sai che mi piacciono le ciabatte?', status: 'sent' }, { date: '10/01/2020 16:15:22', text: 'Ora sai tutto di me.', status: 'received' }], },

esta es mi matriz y mi objeto, quiero que todo el objeto de "texto" se cicle una vez con v-for . ¿Es posible? He estado intentando durante horas todo lo que hago no puedo conseguirlo al final.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Las matrices deben representarse con la directiva v-for , anidando la v-for para la matriz anidada:

 <ul> <li v-for="person in people" :key="person.nome"> <span>{{ person.nome }}</span> <ul> <li v-for="msg in person.messaggi" :key="msg.date">{{ msg.text }}</li> </ul> </li> </ul>

manifestación

about 4 years ago · Juan Pablo Isaza Report
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!