How to validate user input email with AngularJS

1 Answer

0 votes
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>

<form ng-app="" name="emailForm">
    Email: <input type="email" name="emailAddress" ng-model="text">
    <span ng-show="emailForm.emailAddress.$error.email">Not valid e-mail</span>
</form>


</body>
</html>

 



answered May 23, 2017 by avibootz
edited May 23, 2017 by avibootz

Related questions

...