Answers for "how to make angular automatically refresh page"

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 "how to make angular automatically refresh page"

Code answers related to "Javascript"

Browse Popular Code Answers by Language