can I set a Date to datepick?
Closed this issue · 4 comments
axetroy commented
I didn't see it in document.
some time we need set a Date to datepick
Not This
This will change the Attr not Date
$scope.$broadcast('pickerUpdate', 'pickerToUpdate', {
format: 'D MMM YYYY HH:mm',
maxDate: maxSelectableDate, //A moment object, date object, or date/time string parsable by momentjs
minView: 'hours',
view: false //Use default
});
axetroy commented
It default show Today
But I need set it start in some day
not user minDate and maxDate to limit it
brunokrebs commented
@axetroy if you set your model with the date that you want and add the following directive:
watch-direct-changes="true"
It will work as you expect.
brunokrebs commented
@eralha I would close this issue.
axetroy commented
@brunokrebs thanks,i will try