angularjs - Remove all validation errors from an Angular Field -


i know can call $setvalidity('errorkey', true) clear specific validation error field. there way clear validation errors single field?

i tried $setvalidity(true) obvious didn't work. guess loop through $error field , call $setvalidity. there easier way?

please use following line remove validations error

formname form name ..

$scope.formname.$setuntouched();-- set form untouched $scope.formname.$setpristine();--remove validation error 

Comments

Popular posts from this blog

c - zlib and gdi32 with OpenSSL? -

java - inputmismatch exception -

ios - Align baselines with characters in large line heights with Text Kit -