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

344
Views
Vuejs: representación de enlace dinámico en un botón basado en problemas

Tengo un botón de creación encima de mi mesa, estoy tratando de renderizar dinámico :to v-bind

Como tengo acceso a {{title}}

Ex. {{title}} = manzana, naranja, cualquier cadena

He intentado

 <router-link :to=`${title}/create`> <v-btn color="blue white--text mt-5 mr-8"> <span>Create</span> </v-btn> </router-link>

yo obtengo

ingrese la descripción de la imagen aquí


Prueba #2

to="{título}/crear"

redirección de enlace incorrecta!

http://localhost:8080/%7Btitle%7D/crear


Prueba #3

to="{{título}}/crear"

se estrelló!!

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

<router-link :to="`${title}/create`"> <v-btn color="blue white--text mt-5 mr-8"> <span>Create</span> </v-btn> </router-link>

las directivas vue SIEMPRE están envueltas entre comillas dobles, incluso si está utilizando una plantilla literal

over 4 years ago · Santiago Trujillo Report

0

Prueba esto:

 <router-link :to="`${title}/create`">
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!