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

198
Views
Recibo el error "El tipo de propiedad no existe en el tipo booleano" cuando intento hacer un operador ternario en línea en vue3 mecanografiado

El Property type does not exist on type boolean se muestra en show.value booleano

cuando trato de aplicar el texto para el ícono basado en la veracidad

 <template> <div class="d-flex cursor-pointer justify-content-between border rounded bg-white mt-4 p-2 w-100 " @click="dropdown"> <span>Purchase Requsition</span> <span class="material-icons fs-28 text-primary"> {{show.value ? 'arrow_circle_down' : 'arrow_circle_down' }} </span> </div> </template> <script setup lang="ts"> import { ref } from "vue"; const show = ref<boolean>(false) function dropdown(){ show.value = !show.value } </script> <style scoped> </style>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Debe usar show en lugar de show.value en su plantilla. show.value solo está disponible dentro de la etiqueta del script en la API de composición.

 <template> <div class="d-flex cursor-pointer justify-content-between border rounded bg-white mt-4 p-2 w-100 " @click="dropdown"> <span>Purchase Requsition</span> <span class="material-icons fs-28 text-primary"> {{show ? 'arrow_circle_down' : 'arrow_circle_down' }} </span> </div> </template>
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!