Could also be due to the primitive reference... try putting your boolean on
an object:
scope.picker = {
value: '',
opened: false
}
<input type="text" class="form-control" datepicker-popup="dd.MM.yyyy"
ng-model="picker.value"
is-open="picker.opened" min-date="minDate" max-date="'2015-12-31'"
datepicker-options=" {formatYear: 'yy',startingDay: 1};"
date-disabled="disabled(date, mode)" ng-required="true" close-text="Close"
/>
<button type="button" class="btn btn-default" ng-click="picker.opened=true">
On Monday, April 13, 2015 at 11:46:07 PM UTC-6, Stefan Schmidt wrote:
>
> We had problems with the datepicker not opening when it was inside a div
> that had a ng-if statement - maybe that helps ...
>
> Am Montag, 13. April 2015 08:18:19 UTC+2 schrieb [email protected]:
>>
>> Comes from default samples, that for opnen is always a Controller
>> function to set the property opened
>>
>> I am looking for the reason why following- shorter code doesnt work
>>
>> <input type="text" class="form-control" datepicker-popup="dd.MM.yyyy"
>> ng-model="dt"
>>
>> is-open="opened" min-date="minDate" max-date="'2015-12-31'"
>>
>> datepicker-options=" {formatYear: 'yy',startingDay: 1};"
>>
>> date-disabled="disabled(date, mode)" ng-required="true" close-text
>> ="Close" />
>>
>> <span class="input-group-btn">
>>
>> <button type="button" class="btn btn-default"
>>
>> ng-click="opened=true">
>>
>> <i class="glyphicon glyphicon-calendar"></i>
>>
>> </button>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.