$watch on the form field object is not triggered correctly in the valdrMessage directive. The reason for that is the name of the property ('$error'). Because the 3rd argument of the $scope.$watch is set (equals = true), the angular.equals is triggered which ignores properties starting with '$'.
$watch on the form field object is not triggered correctly in the valdrMessage directive. The reason for that is the name of the property ('$error'). Because the 3rd argument of the $scope.$watch is set (equals = true), the angular.equals is triggered which ignores properties starting with '$'.