Skip to content

Instantly share code, notes, and snippets.

@digitalmio
Last active August 29, 2015 14:11
Show Gist options
  • Save digitalmio/9d37c9291a00c8e1c373 to your computer and use it in GitHub Desktop.
Save digitalmio/9d37c9291a00c8e1c373 to your computer and use it in GitHub Desktop.
<form name="addForm" novalidate>
<div>
<label for="firstname">Donor First Name</label>
<input type="text" id="firstname" ng-model="firstname" name="firstname" required />
<div ng-if="addForm.firstname.$pristine == false || addForm.firstname.$untouched == false" ng-messages="addForm.firstname.$error" ng-messages-include="error-messages"></div>
</div>
<button ng-disabled="addForm.$valid == false" ng-click="action(addForm)">Save and go to overview</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment