Small additional note to @rmag's answer. If you have empty but required fields that you want to make dirty use this:
$scope.myForm.username.$setViewValue($scope.myForm.username.$viewValue !== undefined
? $scope.myForm.username.$viewValue : '');