Answers for "angular refresh every 15 seconds"

2

refresh date and time every second angular

setInterval(() => {         
  //replaced function() by ()=>
  this.myDate = new Date();
  console.log(this.myDate); 
  // just testing if it is working
}, 1000);
Posted by: Guest on March-29-2020

Code answers related to "angular refresh every 15 seconds"

Code answers related to "Javascript"

Browse Popular Code Answers by Language