I have the following field for email:
<input type="email" class="form-control" id="email" name="email" ng-model="fields.email" required="true" />
In the div where the field is, I have the following validation:
ng-class="{ 'has-error': userForm.email.$error.email }"
It turns out that typing "abc @ abc" is given as valid, but as we can see it is wrong.
I have tried to use regular expression but without success. How to validate emails correctly in AngularJS?