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

120
Vistas
v-for not displaying the object rendered with ejs template

Here's the code for displaying the content of logs by v-for:

    <tr v-for="log in logs" :key="log.id">
        <td>{{log.name}}</td>
        <td>{{log.establishment}}</td>
        <td>{{log.address}}</td>
        <td>{{log.date}}</td>
    </tr>

On mounted(), I'm initializing the content of logs and I'm sure that it contains the data since it is displaying using console.log.

mounted() {
   this.logs = '<%- JSON.stringify(logs) %>';
   console.log(this.logs);
}

However, it is not displaying the content using v-for. Is there another way to store ejs rendered object to vue data()?

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