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

130
Views
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
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!