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

330
Views
¿Cómo vinculo el identificador a la URL sin hacer que el modelo de datos sea una función?

He estado jugando con la vinculación de un hipervínculo a mi proyecto, pero no quiero que mi modelo funcione. Simplemente quiero vincular el identificador para que, si se hace clic, vaya a la URL adecuada. ¡Cualquier idea sería genial!

 new Vue({ el: "#app", data: { generatedData: "Identifier": "1002", "Name": "some name", ] }, methods: { toggle: function(todo){ todo.done = !todo.done } } })
 <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script> <div id="app"> <p v-if="generatedData">The site location is here: <a v-if="generatedData" href="https://yahoo.com/home/{{generatedData.Identifier}}">https://yahoo.com/home/{{generatedData.Identifier}}</a></p> </div>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Si te entendí bien:

 new Vue({ el: "#app", data() { return { generatedData: {"Identifier": "1002", "Name": "some name"}, } }, methods: { toggle: function(todo){ todo.done = !todo.done } } })
 <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script> <div id="app"> <p v-if="generatedData">The site location is here: <a v-if="generatedData" :href="'https://yahoo.com/home/'+generatedData.Identifier"> https://yahoo.com/home/{{generatedData.Identifier}} </a> </p> </div>

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