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

124
Vistas
Import a Static HTML Vue Component inside another Vue Component

Context : I have a vue component(s) that are stored in an S3 repository in the form of static HTML (name it child). Now I want to import these vue components inside another Vue Component inside a Nuxt Project (name it parent). So it's gonna be a page where the content is dynamically rendered

Current workaround : In the parent component, I have a snippets like this :

<div id="content-test" v-html="content"/>

Where content is a HTML string that is rendered by child component

Current issue : The styling for the parent component is broken. Probably caused by some scripts/css that runs in the child component

Some other workaround I've done / think about :

  • Render the child component inside iframe : Not good, because I want the content of the child to be SEO-friendly
  • Export child as a npm package / repository so that it can be used in parent component dynamically : Not good, because the node_modules of the parent component might grows large if the child component is too large

Do anyone ever had this issue and how to solve this? Thanks

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