Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Ui date fix date parrse and refactor #164

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ivan-zakharchuk
Copy link

Fixes #120

Here we have following breaking changes - now all input date strings will be converted to instance of Date if possible and $viewValue will be formatted by $.datepicker default params or they might be provided explicitly via ui-date="opts" and if we want to change format in model we could use ui-date-format as datepicker format string.



function parseNonDateValue(value) {
console.warn('The ng-model for ui-date have to be a Date instance. ' +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's probably better to use the $log service here to write out anything

@alexanderchan
Copy link
Contributor

Thanks for this, sorry for the delay as I was away. The breaking changes worry me as we have had issues created for those in the past and the validator is now removed which I think is nice to use with angular form errors.

I think I'm ok to implement if you're willing to help with issues created moving forward against this in case people are still using these features, but otherwise I could see more work coming from breaking changes.

Would you be up for watching and helping? Thanks!

@ivan-zakharchuk
Copy link
Author

Thank you for review. I'll take a look into details and give you answer at this weekend.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants