countdown() { let thisRef=this; setInterval(function () { thisRef.timeLeft--; thisRef.ChangeDetectorRef.detectChanges(); }, 1000); }