title: Updating $scope in function and $apply dosen't works
body: <p>I have problem with updating input value. I have $scope.date_from which is displayed in input[type="data"]. I want to update value in it by clicking some button. My code here:</p>
  
  <pre><code>$scope.update_date = function (date_from, date_to) {
          $scope.date_from=date_from;
          $scope.date_to=date_to;
          console.log($scope.date_from);
          $scope.$apply(function() {
              $scope.date_from=date_from;
              $scope.date_to=date_to;
          });
      }
  </code></pre>
  
  <p>The problem is that value is updated in input[type="date"] after clicking my button but it is not displayed (I only see changed in code). My button look like this:</p>
  
  <pre><code>&lt;a href="#" ng-click="update_date('2017-02-13', '2017-02-13')"&gt;Today&lt;/a&gt;
  </code></pre>