Answers for "angular periodic update"

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 "Javascript"

Browse Popular Code Answers by Language