sandeepdillerao / cordova-plugin-otp-auto-verification

13 stars 10 forks source link

How to use page variable inside the success callback event? #2

Closed sabariferin closed 7 years ago

sabariferin commented 7 years ago

My code:

 var success = function (otp) {
        console.log("GOT OTP", otp);
        this.otp = otp;
        window.OTPAutoVerification.stopOTPListener();
      }

In the above code "this.otp" is undefined. how to use the page variable inside the success callback event?

sabariferin commented 7 years ago

Deleted