I am currently validating forms using the well prescribed method:
<form name="userForm">
<div class="form-group" ng-class="{ 'has-error': userForm.email.$invalid }" >
<input type="email" class="form-control" name="email" ng-model="user.email" required />
</div>
</form>
While this is not the end of the world I wondered if there was a less obtrusive way of doing this. I have already stated the field is required and angular will paint the element with css class based upon it's state. Could I achieve the same ends with CSS rather than using ng-class="{ 'has-error': userForm.email.$invalid }". Many thanks
ng-invalidclass + other validation classes.