The problem is as follows: current time changes constantly, each mome
CurrentTime: any; constructor() { setInterval(() => { this.CurrentTime = new Date().getHours() + ':' + new Date().getMinutes() + ':'+ new Date().getSeconds()}, 1); }