Here is simple function I want to call confirm when input length = 6 but the issue in this way is that some time it call multiple time same function on max length. I want to call function once only when max length reach.
onOtpChange(event: any) {
if (event.length == 6) {
this.authcode = event
this.confirm();
}
}
Call function at once on max input length