Support ng-model-options with datepicker
We should support ng-model-options with the datepicker
In particular, we should support
- [x]
allowInvalid - [x]
updateOn - [x]
timezone
I took an investigation into implementing getterSetter, but came across a fundamental flaw with it given that we are allowing setting ng-model-options through alternative means, so we are feature complete as far as ng-model-options support goes for the datepicker.
@wesleycho
"fundamental flaw with it given that we are allowing setting ng-model-options through alternative means, so we are feature complete as far as ng-model-options support goes for the datepicker."
What does that mean? Did getterSetter ever make it to 2.0?
Thanks
It seems to work now, but users can only type into the text field if I also include "updateOn:Blur". e.g. ng-model-options="{ getterSetter: true, updateOn: 'blur' }" - otherwise partially typed dates won't work. Thanks! :smile:
@wald-tq the provided solution doesn't work for me :( , Any guess?
@pankajparkar : I am still using 1.2.x of angular-bootstrap. That's my only guess I with that much information.
@wald-tq That's correct guess, I'm using 0.13.4 version. Any workaround for 0.13.X version?
@pankajparkar I can't help you. Consider a upgrade.