katemihalikova / ion-datetime-picker

Date and/or time picker for awesome Ionic framework
MIT License
169 stars 101 forks source link

ng-model not retaining new datetime #92

Closed suranavarun closed 7 years ago

suranavarun commented 7 years ago

Hi,

After selecting new date if i click on OK button in popup the new date is not retained in ng-model, it always has the initial value assigned to it.

For example,

{{enddatetimeValue| date: "h:mm a ,dd MMM yy"}}

on init if i assign new Date() to enddatetimeValue and then if i change the date in date picker and in button click try to access enddatetimeValue it always shows the new Date() assigned initially.

Varun

katemihalikova commented 7 years ago

Hi Varun, the demo is working fine, it seems like a problem in your code.