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

182
Views
How do I get array inside array datain Vuejs

[enter image description here]

Please how do I get the MentorProfile data's I already iterate for the main data coming...

 <div v-for="notification in notifications" :key="notification.id">
        <div v-for="profile in notification.MentorProfile" :key="profile.id">
            
            <q-item clickable v-ripple>
            <q-item-section>
                {{ notification.text }} from 
            </q-item-section>
            
            <q-item-section avatar>
            <q-avatar rounded>
                <img src="../assets/mentor.jpg">

            </q-avatar>
            </q-item-section>
            <span>{{ profile.name }}</span>
        </q-item>
        
      <q-separator />
      </div>
    </div>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try like following snippet:

new Vue({
  el: '#demo',
  data() {
    return {
      notifications: [{id: 1, file: 'file1', text: 'notification text', MentorProfile: [{id: 1, name: 'Mentor 1'}]}]
    }
  }
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="demo">
  <div v-for="notification in notifications" :key="notification.id">
    <p>{{ notification.text }} from </p>
    <div v-for="profile in notification.MentorProfile" :key="profile.id">
      <img src="https://picsum.photos/20">
      <span>{{ profile.name }}</span>
    </div>
  </div>
</div>

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!