kelp404 / angular-validator

AngularJS form validation.
http://kelp404.github.io/angular-validator/
MIT License
162 stars 46 forks source link

Interact with validatorjs lib #19

Closed jgoux closed 10 years ago

jgoux commented 10 years ago

Hi, it would be a great improvement to be able to interact with https://github.com/skaterdav85/validatorjs , as it has already a full set of rules. It could be used like this with your directive :

<div class="form-group">
                        <label for="number0" class="col-md-2 control-label">Number 1</label>
                        <div class="col-md-10">
                            <input type="text" ng-model="formWatch.number" validator="required|numeric|min:30" class="form-control" id="number0" placeholder="Number, Required"/>
                        </div>
                    </div>
kelp404 commented 10 years ago

Please submit the pull-request.