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

184
Vistas
How to nest different Vue views?

I'm currently working on a small multipage project with Vue. I'm kind of new to Vue and JS in general, so far I got everything to work but right now im struggling to nest multiple view within each other. I've got two main views, one for my homepage and one for subpages.

I created both views and they work fine, but now I want to create multiple subsites for the subpage-view but I don't want to import my navigation component on every single sub page but I don't know how to use the subpage-view as my base and sort of "extend" it with my other views. I'm sorry if this sounds confusing, english is not my first language and I'm not really familiar with the JS vocabulary to articulate myself correctly.

My guess would be that I need to use some sort of router-view with a different name, but as I said, I don't really know if thats the right approach to this. I'm not quite sure if my approach to include multiple subsites is the right way either, my directory structure looks like this:

Folder structure

As I said, I want to include every file in "pages" into GuidePage.vue as its template, I hope someone can help me out right here

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Looks like you need named views https://router.vuejs.org/guide/essentials/named-views.html

about 4 years ago · Juan Pablo Isaza Denunciar
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