如何在angular-moment-picker.js中禁用未来日期? 我的代码是
<div class="input-group"
moment-picker="ctrl.datepicker"
format="YYYY-MM-DD">
<span class="input-group-addon">
<i class="octicon octicon-calendar"></i>
</span>
<input class="form-control"
placeholder="Select a date"
ng-model="ctrl.datepicker"
ng-model-options="{ updateOn: 'blur' }"> </div>
答案 0 :(得分:0)
将max-date options属性设置为当前日期。
max-date - 表示最大可选日期的双向可绑定属性(以相同格式的值或作为Moment.js对象的String)。