You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing the same issue.. the exact issue is that inside the verifyTag method, we cannot access any other class property or method, which are defined outside its scope. verifyTag(str: string): boolean{ var patt = /^[0-9]{10,12}$/; var validity = patt.test(str); if(validity){ this.testValildate.emailError = false } else{ this.testValildate.emailError = true } return validity; }
verifyTag(str: string): boolean{ **this.taggedUser(str);** return str !== 'ABC' && str.trim() !== ''; }
The text was updated successfully, but these errors were encountered: