nelsonomuto / angular-ui-form-validation

Directives for angularjs field validation
http://nelsonomuto.github.io/angular-ui-form-validation
MIT License
180 stars 51 forks source link

Fixed issue #60 #80

Closed inicolenco closed 8 years ago

inicolenco commented 8 years ago

Issue 60 manifested itself because the validation function (registered through $parsers) would return nothing in case the class 'ng-pristine' was present (which when you type the first letter still is). The second time you enter something everything would be ok since it is no longer pristine.