Answers for "angular refresh component every 5 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 component every 5 seconds"

Code answers related to "Javascript"

Browse Popular Code Answers by Language