代碼片斷 <input type="text" datepicker-popup="dd-MMMM-yyyy" ng-model="cdate.customStartDate" is-open="cdate.customStartDate.open" ng-click = "cdate.customStartDate.open = true" max-date="maxDate" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" ng-required="true" close-text="Close" class="input-md" />
ui
說明:is-open 須要使用引用類型而不是值類型code
好比:is-open="open1" 在設置$scope.open1=true或者$scope.open1=false的時候,未必能成效input
若是 is-open="picker.open1" 在經過$scope.picker={};$scope.picker.open1=true/false就能生效io