1
我想要使用angularjs日期選取器在我的項目中,但似乎當我積分日期選取器我的項目角bootstrap.ui日期選擇器彈出不
<div class="input-group">
<div class="input-group ui-datepicker">
<input type="text"
class="form-control"
datepicker-popup="yyyy/MM/dd"
ng-model="dt"
is-open="opened"
max="'2015-06-22'"
datepicker-options="dateOptions"
date-disabled="disabled(date, mode)"
ng-required="true"
close-text="Close">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
控制器
功能已被打破$scope.dt = new Date();
$scope.open = function ($event) {
$event.preventDefault();
$event.stopPropagation();
return $scope.opened = true;
};
$scope.dateOptions = {
'year-format': "'yy'",
'starting-day': 1
};
$scope.disabled = function (date, mode) {
return mode === 'day' && (date.getDay() === 0 || date.getDay() === 6);
};
什麼am'i失蹤那裏?
感謝
這裏是plunkr