Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

set timer for 30 seconds for otp in typescript

  countdown() {

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

    }, 1000);
  }
 
PREVIOUS NEXT
Tagged: #set #timer #seconds #otp #typescript
ADD COMMENT
Topic
Name
6+8 =