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

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -