Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does the ng-invalid-parse class get added to form

Tags:

angularjs

I am using a custom angular directive for validation of a field in a form.

When one of the validation fails, along with the custom error, the class ng-invalid-parse is also added to the field.

Is it normal behavior? If so, what causes it?

like image 486
abhi05b Avatar asked Jan 30 '15 13:01

abhi05b


1 Answers

ng-invalid-parse gets added when a parser returns undefined, no validation will be called after that.

More info: AngularJS docs

like image 165
Wawy Avatar answered Sep 28 '22 06:09

Wawy