$dirty is true, even if there is not text inside
I know that there is part of the angular validation behaviour, but would be great to manage this:
When you use use ng-pattern-restrict with, for example: "^\d*$"
If you write letters, the restrict works fine, but the input gets $dirty=true , even if the input is empty.
Thanks for the report -- I definitely agree with you.
@AlphaGit @sebaplaza having this problem too. Is it possible such that we track and save pristine state of ngModelController before change? Then if test fail or value remain the same (when no value change, but event is triggered anyway) just revert the ngModelController back to previous state after $setViewValue