I have a directive attached to an input field that calls $compile(element)(scope);
in its Link method. Everything works well, except when trying to use the following:
ng-class="{ 'has-error' : frm.first_name.$invalid && frm.last_name.$dirty }"
The $invalid property updates, but $dirty (and $pristine) always retain their initial values.
I'm not sure how to approach this problem. Does anyone have any ideas? Any info would be greatly appreciated. Thanks!