title: Disable future days at ui.bootstrap.datepicker Angularjs
body: <p>I am using the <a href="https://angular-ui.github.io/bootstrap/#/typeahead" rel="nofollow noreferrer">datepicker of UI Bootstrap</a>:  (there is a <a href="https://plnkr.co/edit/eHw7OGc0Rxw7EGXDHs73?p=previewstrong" rel="nofollow noreferrer">Plunker there</a> that disable the past dayswith a button).</p>
  
  <p>Can anyone please help me to disable the future days without any button? </p>
  
  <p>I tried change the function of the button like that, but it didn't worked:</p>
  
  <p><code>$scope.toggleMin = function() {
      $scope.options.minDate = $scope.options.minDate ? **new Date()** : **null** ;
    };</code></p>
  
  <p>And this is a button, I'd like to disable without a button. </p>