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

116
Vistas
How can I show automatically make an element appear/disappear based on current time in AngularJS?

Is there another way to automatically have elements appear and disappear at a certain time than via timeout()? Like ng-if="system.Time>12:00:00" in pseudo code. Preferably only done with html. What I am aiming at is an offer valid for one hour for instance.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Maybe function like this could be of help:

function timeChecker(){
  if(/*check if item should be visible*/){
    visible = true
  } else {
    visible = false
  }
}

// your timeChecker function will be runned every minute so you can implement more complex logic if needed
var interval = setInterval(timeChecker, 1 * 60 * 1000 /*that would be one minute*/);

// just remember to clear interval when you destroy component
clearInterval(interval);

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