title: AngularJS - bug with ng-disabled? Not updating with new values
body: <p>I'm somewhat new to angular and have come across a very weird problem, I'm sure others have too. </p>
  
  <p>Let's say that this is the code for my button:</p>
  
  <pre><code>&lt;button type="submit" ng-click="submit(something)" id="coolButton" 
          ng-disabled="type === 0 || code === ''" 
          &gt;Check-In&lt;/button&gt;
  </code></pre>
  
  <p>So, basically if either type is 0 or code is nothing (no text), then this button will be disabled.</p>
  
  <p>Now's here where my problem starts: If I load the page with <code>type = 0</code> and <code>code = ''</code>, then sure enough it's disabled. If, I change both of these values then of course the button will be enabled. </p>
  
  <p>However, if I change the values back to <code>0</code> and <code>''</code>, then the button won't become disabled again. I know for a fact that the values are in fact 0 and '' as I've printed their values out on the page. </p>
  
  <p>What could be causing <strong><code>ng-disabled</code></strong> to not run the expression again?</p>