I am programmatically updating some of the fields on my form with a value and I would like to set the field state to $dirty. Doing something like:
$dirty
Since AngularJS 1.3.4 you can use $setDirty() on fields (source). For example, for each field with error and marked required you can do the following:
$setDirty()
angular.forEach($scope.form.$error.required, function(field) { field.$setDirty(); });