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
Made a jsFiddle just for you that solves this issue. simply set $dirty to true, but with a $timeout 0 so it runs after DOM was loaded.
$timeout 0
Find it here: JsFiddle
$timeout(function () { $scope.form.uName.$dirty = true; }, 0);