How to use valdr AngularJs service Without Form Tag

345 views Asked by At

Is it possible to validate form elements without using Form tag using Valdr AngularJs Service . If any other Plugin Avaliable to Validate form Elements please let me know.

1

There are 1 answers

0
philippd On

You can use the ngForm directive instead of a form tag.

<div ng-form="myForm" valdr-type="Person">
  <input name="lastName" ng-model="person.lastName">
</div>

Example: valdr without form tag