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

115
Views
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 answers
Answer question

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 Report
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!