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

287
Views
¿Cómo agregar una clase activa en vuejs con router-link?

tengo

 .navigation ul li router-link(:to="{ name: 'tasks'}") Tasks li router-link(:to="{ name: 'kanban'}") Kanban li router-link(:to="{ name: 'activity'}") Activity li router-link(:to="{ name: 'calendar'}") Calendar li router-link(:to="{ name: 'files'}") Files .marker .selecttasks span .selectkanban span .selectactivity span.third-marker( ) .selectcalendar span.fourth-marker( ) .selectfiles span

¿Cómo, al hacer clic en el enlace del enrutador, se agrega una clase activa a los marcadores (por ejemplo, a .selecttasks)?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Para cada componente de enlace del enrutador, agregue la propiedad active-class como:

 router-link(:to="{ name: 'tasks'}" active-class="selecttasks") Tasks
over 4 years ago · Santiago Trujillo Report
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!