This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Poor email validation #12288
Closed
Description
Hi
I was watching a tutorial video on codeschool about form validation in Angular, when I found out emails were validated way too poorly.
For example, you needn't type the email address completely: foo@bar is enough to make form validated.
Just a simple form:
{{test}}
<form name="testForm" ng-submit="return false;" novalidate>
Enter your email:<br>
<input type="email" ng-model="test" required>
<div>form is {{testForm.$valid}}</div>
<input type="submit" class="btn btn-submit" value="Submit">
</form>
Result is that testForm.$valid is TRUE
Thanks.