title: ng-disabled with function that trigger when change
body: <p>I have a submit validation button that need to be enable when all fields is being entered correctly. As the validation is too complex and is not able to be solve by using formName.$invalid alone, i need to write a function to cater the validation. I expect that the shouldEnable function to be trigger for each of the model changes inside. But it does not. Os is there any alternative for this?</p>
  
  <p>Initial</p>
  
  <pre><code>&lt;button ng-disabled="formName.$invalid"&gt;Submit&lt;/button&gt;
  </code></pre>
  
  <p>Expected</p>
  
  <pre><code>&lt;button ng-disabled="shouldEnable()"&gt;Submit&lt;/button&gt;
  
  $scope.shouldEnable = function() {
      $scope.isEnable = true;
      angular.forEach($scope.form.input2, function(val) {
          if($scope.form.input2.inputA &amp;&amp; $scope.form.input2.inputB) {
              isEnable = false;
          }
      })
  }
  </code></pre>