indrimuska / angular-moment-picker

Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
http://indrimuska.github.io/angular-moment-picker/
MIT License
527 stars 229 forks source link

The formattedDate variable in moment-picker="formattedDate" is not set up after run. #277

Open lucius-pl opened 5 years ago

lucius-pl commented 5 years ago

The formattedDate variable in moment-picker="formattedDate" is not set up after run although the date variable in ng-model="date" is initiated by the moment object. The formattedDate is undefined in this case. The formattedDate is set up only if a date has been changed in angular-moment-picker. The formattedDate should be set up also, since ng-model is set up and formatted date is presented in input text box.

Plunker: https://plnkr.co/edit/WKghIjNS0e4tj4gbz6YF?p=preview

Thank you.

MadChadJack commented 4 years ago

I'm not exactly sure what you're trying to say, but setting anything to the moment-picker does not work in my experience.