-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Format not applying in AngularJS #34
Comments
@loganwedwards hi. I believe you just need to trigger |
@loganwedwards also, if you prefer do it manually, do not update attribute document.getElementById('dateStart').value = $scope.dateQuery.startInput; |
@loganwedwards any update on this? |
I apologize that this is way overdue, but after upgrading to 1.5.2, it seems the issue is resolved. I don't need to trigger any special handlers, setup any watchers, etc... I may have had an old version of this library and or better-dom. The syntax in the view is now simply: <input type="date" id="dateStart" name="dateStart" data-format="MM/dd/yyyy" ng-model="dateQuery.start" /> Sorry for the trouble! Keep up the great work. |
@loganwedwards do you have any idea what has changed in Angular 1.5.2? Does it trigger |
@chemerisuk Clarification, I upgraded better-dateinput-polyfill to 1.5.2. |
@loganwedwards ah, yes. alright, cool then |
I have the following:
I've also tried setting the
value
attribute in the JavaScript code usingAt any rate, the formatting is not being applied and was curious if this has been noticed. Anything specific that I can provide? I was thinking about wrapping this datepicker in an Angular directive, but wanted to hold off if I'm doing something obviously wrong.
Thanks!
The text was updated successfully, but these errors were encountered: