title: Angular 1.2: Is it possible to exclude an input on form dirty checking?
body: <p>In the example beneath, is it possible to ignore the dirty state of the dropdown list? Now it get's dirty if the user changes the selected person. But I don't care if this field is dirty in my form validation.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function TestingCtrl($scope) {
    $scope.company = '';
    $scope.persons = [{
      name: 'Alice'
    }, {
      name: 'Bob'
    }];
  
  
    $scope.selectedPerson = $scope.persons[0];
  
    $scope.checkForm = function() {
      if ($scope.personForm.$dirty) {
        alert('Form is dirty');
      } else {
        alert('Form is clean');
      }
    }
  
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js"&gt;&lt;/script&gt;
  
  
  &lt;div ng-app&gt;
  
    &lt;div ng-controller="TestingCtrl"&gt;
  
      &lt;form name="personForm" novalidate&gt;
        Company:
        &lt;input type="text" ng-model="company" required&gt;
        &lt;br&gt;Persons:
        &lt;select ng-options="p.name for p in persons" ng-model="selectedPerson"&gt;&lt;/select&gt;
  
      &lt;/form&gt;
  
      &lt;br&gt;
      &lt;button ng-click="checkForm()"&gt;Check if dirty&lt;/button&gt;
  
    &lt;/div&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>