angular-bootstrap-show-errors icon indicating copy to clipboard operation
angular-bootstrap-show-errors copied to clipboard

ng-required error in docs

Open fixpunkt opened this issue 10 years ago • 0 comments

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.

fixpunkt avatar Apr 23 '15 12:04 fixpunkt