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

96
Views
vuejs props - parent variables

I have this props in a vue page (apps.vue)

props: {
  vote: {
    type: Object,
    default: () => {
      return {};
    }
  },
},

as far as I know the property "props" is used to pass data from parent to children. I think apps.vue is the child (right ?)

I want how can I find the parent file of that property because I need to check its variables

exp: this.vote.good

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

0

apps.vue

<Apps :vote="data" />

children component

in templete

{{ data }}

in script

this.data

and ...

export default {
  props: ['vote']
}

or

export default {
  props: {
     vote: {
         require: true,
         type: String,
         default: ''
     }
  }
}
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!