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

239
Vistas
How to call method from div in vue

I have a div and I just want to render it on a condition, I also want to call the method if the condition comes true here is my code

 <div v-if="timetable === null" "mymethodhere">
      <h4>no data found</h4>
 </div>
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Try a watcher on timetable and if timetable === null do things.

  watch: {
    "timetable": function (newVal) {
       if (newVal === null) {
         ---> do things
       }
     }
   }
about 4 years ago · Juan Pablo Isaza Denunciar

0

Maybe you can use a watcher on timetable

watch: {
    timetable(timetable){
        if (timetable === null){
            // ...
        } else {
            // ...
        }
    }
},

Official docs: https://vuejs.org/guide/essentials/watchers.html

about 4 years ago · Juan Pablo Isaza Denunciar
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