Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

375
Vistas
The calculation of the number of records in the template works, but it does not work in the Setup Script

I am starting in VUE 3 and I have the following problem

<script setup>
 import { RouterLink } from 'vue-router'  
 import { storeToRefs } from 'pinia'  
 import { useOfertaStore } from '../stores/ofertas'
 const { ofertas } = storeToRefs(useOfertaStore())
 const { fetchOfertas } = useOfertaStore()`enter code here`
 fetchOfertas()
  const cantidadOfertas=ofertas.lenght
  </script>
 <template>
  <!-- //Muestra la cantidad de Registros -->
 {{ofertas.length}}
 <hr>
 <!-- No No muestra nada -->
 {{ cantidadOfertas }}

</template>    

How can I calculate the number of offers arrays in the Script Setup?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda