Définir la minuterie pendant 30 secondes pour OTP dans TypeScript
countdown() {
let thisRef=this;
setInterval(function () {
thisRef.timeLeft--;
thisRef.ChangeDetectorRef.detectChanges();
}, 1000);
}
Mohan Eswar