paulyoder / angular-bootstrap-show-errors

An Angular directive for Bootstrap to intelligently show form validation errors
MIT License
331 stars 77 forks source link

ng-required error in docs #43

Open fixpunkt opened 9 years ago

fixpunkt commented 9 years ago

The following example is given in the section "Force Validity Check":

<form name="userForm">
  <div class="form-group" show-errors>
    <input type="text" name="firstName" ng-model="firstName" ng-required />
  </div>
  <input type="submit" ng-click="save()" />
</form>

This does not set the required attribute for current versions of Angular. ng-required should be replaced by required or ng-required="true" here.