jonsamwell / angular-auto-validate

An automatic validation module for AngularJS which gets rid of excess html in favour of dynamic element modification to notify the user of validation errors
MIT License
346 stars 76 forks source link

ng-pattern not working #144

Closed anhuisunfei closed 8 years ago

anhuisunfei commented 8 years ago
  <input type="number" 
                            required 
                            ng-pattern="/^\-?\d+$/"
                            class="form-control">
jonsamwell commented 8 years ago

No ng-model

On 19:31, Thu, 12 May 2016 anhuisunfei, notifications@github.com wrote:

<input type="number" required ng-pattern="/^-?\d+$/" class="form-control">

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/jonsamwell/angular-auto-validate/issues/144

anhuisunfei commented 8 years ago

I want add customer error message!

jonsamwell commented 8 years ago

Please read the documentation!

https://github.com/jonsamwell/angular-auto-validate/wiki/Custom-Validators-and-Error-Message

http://jonsamwell.github.io/angular-auto-validate/#overriding_error_message

anhuisunfei commented 8 years ago

tanks!