Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

130
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda