0
我使用Angular Xeditable grid .Could你能告訴我如何設置CURENT日期上,我已經在上面的網格內使用的日曆控件默認日期?謝謝。角Xeditable定格當前日期作爲默認日期
<tr ng-repeat="comment in vm.comments track by $index">
<td>
<span editable-bsdate="comment.date" e-uib-datepicker-popup="MM-dd-yyyy" e-ng-click="opened = !opened" e-is-open="opened" e-name="date" e-form="commentForm" onbeforesave="vm.checkValidity($data)" e-required>
{{ comment.date | date:'MM-dd-yyyy' }}
</span>
</td>
</tr>
<button class="btn btn-primary" ng-click="vm.addComment()">Add</button>