title: ng-change not called we ng-model update in promise.then
body: <p>I am having a problem with ng-change in a select not being called when I update the ng-model parameter in my promise.then.  My select is:</p>
  
  <pre><code>&lt;select ng-model="currentReport"
      ng-options="rpt.ReportDisp for rpt in availableReports" 
      ng-change="updateDependent()"&gt;&lt;/select&gt;
  </code></pre>
  
  <p>availableReports is an array of these objects and is retrieved by a $http call in my service. When the call finishes I want to make sure the 1st entry is selected and do the code:</p>
  
  <pre><code>webServices.getReports(user, menu1, menu2)
              .then(function (result) {
                  $scope.availableReports = result.data.d;
                  $scope.currentReport = $scope.availableReports[0];
               }
  </code></pre>
  
  <p>This sets the select to the 1st report, but the ng-change does not call the function updateDependent().</p>
  
  <p>Also, I tried adding a call to the updateDependent() function into the .then as shown below.  but when the function is called $scope.currentReport is undefined.</p>
  
  <pre><code>webServices.getReports(user, menu1, menu2)
              .then(function (result) {
                  $scope.availableReports = result.data.d;
                  $scope.currentReport = $scope.availableReports[0];
                  updateDependent();
               }
  </code></pre>
  
  <p>Anyone know what is going on?</p>
  
  <p><strong>Found the issue, me</strong></p>
  
  <p>The function update updateDependent is declared as $scope.updateDependent().  So I need to change the reference in http associated .then to $scope.updateDependent(). </p>