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

367
Views
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
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!