refresh date and time every second angular

Solutions on MaxInterview for refresh date and time every second angular by the best coders in the world

showing results for - "refresh date and time every second angular"
Ophélie
18 Jan 2017
1setInterval(() => {         
2  //replaced function() by ()=>
3  this.myDate = new Date();
4  console.log(this.myDate); 
5  // just testing if it is working
6}, 1000);