I have a sign up form for an application, and angular js is responsible for its validation.
I ran into an issue when Angular js wasn\'t accepting an email address wh
why do you return undefined?
Refactoring of the function:
var verificationEmail = function (viewValue) { if ((typeof viewValue != "undefined") && viewValue != "") { return regex.test(viewValue); } };