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

295
Vistas
Vue: How to populate an input datetime-local inside a loop?

I got this vue loop that cycles around all games to create a form. The games are valid up to a certain date-time, so I think using an <input type="datetime-local"... /> would do the work, the data is received in format "YYYY-mm-dd HH:mm" ... so I have:

<form ...>
  <div v-for="game in games" :key="game.id">
    <input ...> Home and Away selectors
    <input 
      type="datetime-local" 
      name=...
      v-model="game.valid_until_date"
    />
    ...
  </div>
</form>

My first problem is that I'm not getting the binding, that is value property stays null, I thought it had something to do with the string format. All the other variables I got from the database are working fine, populating my forms as expected.

Of course if I use a simpler <input type="text"... /> things works as expected

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