how to auto refresh page on angular 9 code example
Example: 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);