{"action":"closed","issue":{"url":"https://api.github.com/repos/Toilal/ng-pickadate/issues/9","labels_url":"https://api.github.com/repos/Toilal/ng-pickadate/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Toilal/ng-pickadate/issues/9/comments","events_url":"https://api.github.com/repos/Toilal/ng-pickadate/issues/9/events","html_url":"https://github.com/Toilal/ng-pickadate/issues/9","id":60054915,"number":9,"title":"Clearing a pick-a-date does not reflect in it's model.","user":{"login":"kumorig","id":5523938,"avatar_url":"https://avatars.githubusercontent.com/u/5523938?v=3","gravatar_id":"","url":"https://api.github.com/users/kumorig","html_url":"https://github.com/kumorig","followers_url":"https://api.github.com/users/kumorig/followers","following_url":"https://api.github.com/users/kumorig/following{/other_user}","gists_url":"https://api.github.com/users/kumorig/gists{/gist_id}","starred_url":"https://api.github.com/users/kumorig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumorig/subscriptions","organizations_url":"https://api.github.com/users/kumorig/orgs","repos_url":"https://api.github.com/users/kumorig/repos","events_url":"https://api.github.com/users/kumorig/events{/privacy}","received_events_url":"https://api.github.com/users/kumorig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Toilal/ng-pickadate/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-06T03:38:25Z","updated_at":"2015-03-17T15:48:31Z","closed_at":"2015-03-17T15:48:31Z","body":"Thanks for the work you put in this!\r\n\r\n I have a problem with clearing a pick-a-date does not reflect in it's model. For example:\r\n`<input type=\"text\" pick-a-date=\"startDate\" max-date=\"endDate\"/>`\r\n`<input type=\"text\" pick-a-date=\"endDate\" min-date=\"startDate\"/>`\r\n\r\nSetting values updates correctly, but pressing the clear button and the value remains in the model, \r\nas can be proved by outputting the value:\r\n\r\n    {{ startDate }} {{ endDate }}\r\n\r\n\r\nThis is particularly problematic using `max-date` and `min-date` since clearing a date will still limit the range on the other pick-a-date.\r\n\r\nAlso, I seem to be unable to set events functions as seen in the http://amsul.ca/pickadate.js/date/ options:\r\n\r\n    // Events\r\n    onStart: undefined,\r\n    onRender: undefined,\r\n    onOpen: undefined,\r\n    onClose: undefined,\r\n    onSet: undefined,\r\n    onStop: undefined,"}}