Answers for "angular component data is not automatically refreshed"

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 component data is not automatically refreshed"

Code answers related to "Javascript"

Browse Popular Code Answers by Language