Skip to content

Instantly share code, notes, and snippets.

@deepal
Created April 2, 2017 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deepal/3171c102f1eb9bb3846857a2975fff6f to your computer and use it in GitHub Desktop.
Save deepal/3171c102f1eb9bb3846857a2975fff6f to your computer and use it in GitHub Desktop.
<form name="myForm" novalidate class="form">
<div class="form-group" ng-class="{'has-error': myForm.name.$invalid}">
<label for="name">Name</label>
<input class="form-control" type="text" name="name" id="name" name-validator ng-model="name"/>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment