Establecer un temporizador durante 30 segundos para OTP en TypeScript

  countdown() {

    let thisRef=this;
    setInterval(function () {
      thisRef.timeLeft--;
    thisRef.ChangeDetectorRef.detectChanges();

    }, 1000);
  }
Mohan Eswar