Using $setValidity inside a Controller

The Solution to Using $setValidity inside a Controller is


This line:

myForm.file.$setValidity("myForm.file.$error.size", false);

Should be

$scope.myForm.file.$setValidity("size", false);

~ Answered on 2013-01-16 19:38:00


Most Viewed Questions: