Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.1/angular.min.js"></script>
  
<script 
src="//code.angularjs.org/1.3.0-beta.10/angular-messages.min.js">
</script>
  
  <meta charset="utf-8">
  <title>ngMessage Example in AngularJS</title>
</head>
<body>
<form name="studentForm">
  <input type="email" name="studentEmail" ng-model="email" 
         required placeholder="Enter email"/>
  <div ng-messages="studentForm.studentEmail.$error">
    <div ng-message="required">Email field is required</div>
    <div ng-message="email">Email address is invalid</div>
  </div>
</form>
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
saan1984pro
0viewers