title: Angular JS doesn't update select and input from date calendar
body: <p>I'm using Angular JS and Bootstrap and I want to update the input of a datepicker calendar and a select from a function.</p>
  
  <p>The values are updated but I can't see these on their correspondent inputs.</p>
  
  <p>We can say that I'm updating the model but not the view. If I update the model from the view everything works fine but not to the contrary.</p>
  
  <p>In the same form, if I update a a checkBox making clic ... Surprise. The select and the datepicker calendar are updated.</p>
  
  <p>How can I update the view from my model and see this update? </p>
  
  <p><strong>Edit 1:</strong></p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;select ng-model = "searchPAI.sistemaSelected" class="form-control" ng-options="sistema.nombreSistema for sistema in listSistemas"&gt;
  &lt;/select&gt;
  &lt;p class = "input-group" ng-controller = "dpFechaDesde"&gt;
      &lt;input type = "text" class = "form-control" uib-datepicker-popup = "{{format}}" name = "dtInicio" ng-model = "dateFrom" is-open = "popup1.opened" ng-change = "change2()"
      min-date = "minDate" max-date = "maxDate" datepicker-options = "dateOptions" close-text = "Cerrar" clear-text = "Borrar" now-text = "Hoy" /&gt;
      &lt;span class="input-group-btn"&gt;
          &lt;button type="button" class="btn btn-default" ng-click="open1()"&gt;&lt;i class="glyphicon glyphicon-calendar"&gt;&lt;/i&gt;&lt;/button&gt;
      &lt;/span&gt;                     
  &lt;/p&gt;
  </code></pre>
  
  <p><strong>JS:</strong></p>
  
  <pre><code>$scope.searchPAI.sistemaSelected = $scope.listSistemas[id];
  $scope.$on("updateFechaDesde", function(){
          $scope.dateFrom = publicDPFactory.date;
          MyVar.data.dtFrom = publicDPFactory.date;
          console.log("publicDPFactory.date: " + publicDPFactory.date);
          console.log("scope.dateFrom: " + $scope.dateFrom);
  });
  </code></pre>
  
  <p>I remember, everything works fine if I update the model from the view.</p>
  
  <p><strong>Edit 2:</strong></p>
  
  <p>More surprises! How I said previously, I update the value from the model and I can't see these on the view.</p>
  
  <p><a href="https://i.stack.imgur.com/oSzXx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oSzXx.png" alt="enter image description here"></a></p>
  
  <p>But, if I make a clic over "SI" ... Surprise!!! I can see the values updated on the view. You can see right now the select and the datapicker updated.</p>
  
  <p><a href="https://i.stack.imgur.com/MmYBt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MmYBt.png" alt="enter image description here"></a></p>