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

138
Views
i want to bind variables to a custom component but it is rending as a string only in vue

Hi i'm using google https://modelviewer.dev/editor/ <model-viewer> which is a custom component. I don't want to compile it through vue so i'm using v-pre directive on <model-viewer> as shown below.

<model-viewer v-pre></model-viewer>

but the problem is <model-viewer src=""> expect src that i need to give through vue which is rendering as a string only

data(){
   return {
      path: '../path'
   }
}

<model-viewer :src="path"></model-viewer> <-- rendered code

My Question: my path is binding as a string to <model-viewer> how it will yeild actual path value.

Note: if i remove v-pre on <model-viewer> compile or build will fail, vue throws error unknown element <model-viewer>

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!