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

127
Vistas
How do you change the URL as you scroll with vue-router?

So I'm just wondering on how to add # to the URL as you're scrolling down to different sections as in Vue's website itself.

I understand the # depends on the id of of the section. Does it have to do with ScrollBehavior?

Do they have to have 1 thing in common, such as a common class or like in Vue's website, they're all h2 components?

Do I have to change any of the options in the router itself? Been googling about this but can't really find anything that's helping my understanding.

#edit: Just realised not everything's h2 so now I'm more confused.

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