title: Setting options to datepicker in angular-ui bootstrap
body: <p>I'm trying to use datepicker component from angular-ui bootstrap lib as descibed here: <a href="http://angular-ui.github.io/bootstrap/" rel="noreferrer">http://angular-ui.github.io/bootstrap/</a>
  And I try to set options for the popup picker and accoriding to the documentation I should pass options for datepicker as JSON using the datepicker-options attribute.</p>
  
  <p>In my view I have:</p>
  
  <pre><code>        &lt;div class="row"&gt;
          &lt;div class="col-md-6"&gt;
              &lt;p class="input-group"&gt;
                  &lt;input type="text" class="form-control" datepicker-popup="{{format}}" ng-model="dt" is-open="opened" min="minDate" max="'2015-06-22'" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" ng-required="true" close-text="Close" /&gt;
                  &lt;span class="input-group-btn"&gt;
                  &lt;button class="btn btn-default" ng-click="open($event)"&gt;&lt;i class="glyphicon glyphicon-calendar"&gt;&lt;/i&gt;&lt;/button&gt;
            &lt;/span&gt;
              &lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>And in my controller I have:</p>
  
  <pre><code>    $scope.dateOptions = {'show-button-bar': 'false', 'close-text':'SomeText'};
  
      $scope.today = function() {
          $scope.dt = new Date();
      };
      $scope.today();
  
      $scope.showWeeks = false;
  
      $scope.clear = function () {
          $scope.dt = null;
      };
  
      $scope.toggleMin = function() {
          $scope.minDate = ( $scope.minDate ) ? null : new Date();
      };
      $scope.toggleMin();
  
      $scope.open = function($event) {
          $event.preventDefault();
          $event.stopPropagation();
  
          $scope.opened = true;
      };
  
      $scope.dateOptions = {
          'year-format': "'yy'",
          'starting-day': 1
      };
      $scope.format = 'dd/MM/yyyy'
  </code></pre>
  
  <p>As you can see at the beginning I try to set the options:</p>
  
  <pre><code> $scope.dateOptions = {'show-button-bar': 'false', 'close-text':'SomeText'};
  </code></pre>
  
  <p>however, it doesn't seem to work, the datepicker does not change.
  Any ideas what I'm doing wrong?</p>