Angular Validation $parsers
angularjs, validation
Solution
You have to call `ctrl.$setValidity('valid', false);` within scope.$apply
scope.$apply(function(){
ctrl.$setValidity('valid', false);
})
Problem
When we have a controller or ng-model-controller we can do ``` ctrl.$parsers.push(function(viewValue){ ctrl.$setValidity('valid', true); }); ``` and in the end $digest is called automatically and validation renders. What if I want to validate a field on blur. and I do ``` element.blur(function(){ [validations] ctrl.$setValidity('valid', false); }) ``` and the result don't change on html with elements ng-binded, how to render this change?