netceteragroup / valdr

A model centric approach to AngularJS form validation
http://netceteragroup.github.io/valdr/
MIT License
153 stars 43 forks source link

$watch on the form field object not triggered correctly in the valdrMessage directive #89

Closed mmatczak closed 9 years ago

mmatczak commented 9 years ago

$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 '$'.