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
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
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>