title: ng-model for input element doesn't pass the value to a method call
body: <p>I have this html template:  </p>
  
  <p></p>
  
  <pre><code>    &lt;br&gt;
      &lt;input type="number"
             name="input"
             required
             class="form-control input-md"
             ng-model="totalPay"
             placeholder="Amount"
             ng-minlength="1"
             ng-maxlength="3"
             min="1"
             max="150"&gt;
  
  &lt;td&gt;&lt;select ng-options="reason for reason in refundReasons" required ng-model="chosenReason"&gt;
      &lt;option value=""&gt;Select refund reason&lt;/option&gt;
  &lt;/select&gt;&lt;/td&gt;
  &lt;br&gt;
  
  &lt;button class="btn btn-primary" ng-click="payDriver(userId, totalPay, chosenReason)"&gt;Pay driver&lt;/button&gt;
  
  &lt;/p&gt;
  </code></pre>
  
  <p>for some reason I get <code>totalPay == undefined</code> no matter how I try to put it.</p>
  
  <p>The other values <code>userId</code> and <code>chosenReason</code> are as expected.</p>
  
  <p>my controller:</p>
  
  <pre><code>var opsToolControllers = angular.module('opsToolControllers');
  
  opsToolControllers.controller('payoutCtrl', ['$scope', '$location', 'Util', 'User', 'Payout', function ($scope, $location, Util, User , Payout) {
  
      $scope.refundReasons = ["1 -- No show compensation", "2 -- Bonus not paid"];
      $scope.userId = null;
      $scope.totalPay = null;
  </code></pre>
  
  <p>this is the method in the controller i try to call:</p>
  
  <pre><code>$scope.payDriver = function (userId, total, chosenReason) {
      Payout.payDriver(userId, $scope.totalPay, chosenReason, successCallBack, errorCallBack())
  };
  </code></pre>
  
  <p>the arg <code>total == undefined</code> and the body <code>$scope.totalPay == null</code></p>