huei90/angular-validation — pull request #51 by dmitry-dedukhin (2014-11-14 07:13:41+00:00)
Title: Use ctrl.$viewValue instead of element[0].value

I think it is completely wrong to use element[0].value.
If element is bound to a model which is an object (for example, Date object in datepickers) element[0].value is empty.
And correct way is to use $viewValue.