title: Datepicker not opening twice in angular-ui version 0.11.0
body: <p>I am trying to have 2 datepickers and I am using Angular UI version 0.11.0.</p>
  
  <p>My HTML code</p>
  
  <pre><code>&lt;span ng-if="periods.period == 10"&gt;
       &lt;input type="text" datepicker-popup="dd-MMMM-yyyy" ng-model="cdate.customStartDate" is-open="opened1"  max-date="maxDate" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" ng-required="true" close-text="Close" class="input-md" /&gt;
       &lt;button class="btn" ng-click="open($event,'opened1')"&gt;&lt;span class="glyphicon glyphicon-calendar"&gt;&lt;/span&gt;&lt;/button&gt;
  
  &lt;/span&gt;
  
  
  &lt;span ng-if="periods.period == 10"&gt; 
  - 
      &lt;input type="text" datepicker-popup="dd-MMMM-yyyy" ng-model="cdate.customEndDate" is-open="opened2"  min-date="cdate.customStartDate" max-date="maxDate" datepicker-options="dateOptions" date-disabled="disabled(date, mode)"  ng-required="true" close-text="Close" class="input-md" /&gt;
      &lt;button class="btn" ng-click="open($event,'opened2')"&gt;&lt;span class="glyphicon glyphicon-calendar"&gt;&lt;/span&gt;&lt;/button&gt;   
  &lt;/span&gt;
  </code></pre>
  
  <p>and my JS code is 
  `</p>
  
  <pre><code>                     $scope.disabled = function(date, mode) {
                        return ( mode === 'day' &amp;&amp; ( date.getDay() === -1 || date.getDay() === 7 ) );
                       };
  
                       $scope.maxDate = new Date();
  
  
                         $scope.open = function($event,opened) {
                              $event.preventDefault();
                              $event.stopPropagation();
  
                              $scope[opened] = true;
                            };
  
  
                       $scope.dateOptions = {
                       'year-format': "'yy'",
                       'starting-day': 1
                       };
  </code></pre>
  
  <p>`
  At first, when I click on the button, datepicker opens up just fine. But once it has been opened once,the problem is that the datepicker popup doesn't open the next time I click on the button.</p>