title: How to get value when model value lower than ng-min?
body: <blockquote>
    <p>$scope.total &lt; ng-min, $scope.total is undefined.</p>
  </blockquote>
  
  <p>But i need to get that value to shown as change.</p>
  
  <p>for example : if change -50, then cashier can easy to talk to customer if he need 50 more.</p>
  
  <pre><code>angular.module('app', [])
    .controller('MainCtrl', function($scope) {
      $scope.pay = null;
      $scope.total = 1000;
      $scope.change = 0;
  
      $scope.check = function() {
        $scope.change = $scope.pay - $scope.total;
        console.log('pay = ' + $scope.pay + ' , total = ' + $scope.total + ' , change = ' + $scope.change);
      };
    });
  
  &lt;body ng-app="app" ng-controller="MainCtrl"&gt;
     Total = {{ total }}
     &lt;input type="number" ng-model="pay" ng-min="total" ng-change="check()"&gt;
     Change = {{ change }}
  &lt;/body&gt;
  </code></pre>
  
  <p>here my plunkr <a href="http://plnkr.co/edit/4C9AuBI4q97VXXvXM59B?p=preview" rel="nofollow">http://plnkr.co/edit/4C9AuBI4q97VXXvXM59B?p=preview</a></p>