<!DOCTYPE html>
<html>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body ng-app="">
<h3>Enter a email id</h3>
<form name="myform">
<input type="email" name=myinput ng-model="myinput">
</form>
<h4>email is valid:{{myform.myinput.$valid}}
</body>
</html>In this code snippet you will learn how to validate email input from user.
