Atur timer selama 30 detik untuk OTP di TypeScript
countdown() {
let thisRef=this;
setInterval(function () {
thisRef.timeLeft--;
thisRef.ChangeDetectorRef.detectChanges();
}, 1000);
}
Mohan Eswar