Created
March 12, 2016 23:13
-
-
Save sulco/accffdf537f6c9b29c41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form name="aForm" novalidate> | |
<label for="name">Your email</label> | |
<input type="email" id="name" ng-model="name" name="aField" required> | |
<ng-messages for="aForm.aField.$error" | |
ng-show="aForm.aField.$invalid && aForm.aField.$dirty"> | |
<ng-message when="required">This field is required</ng-message> | |
<ng-message when="email">Please enter a valid email address</ng-message> | |
</ng-messages> | |
<button ng-click="save()" ng-disabled="aForm.$invalid">Send</button> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment