indrimuska/angular-moment-picker

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

lucius-pl opened this issue · 1 comments

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.

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