diosney / angular-bootstrap-datetimepicker-directive

A wrapper directive around the bootstrap-datetimepicker component.
MIT License
69 stars 50 forks source link

ng-model variable is set to undefined after initialization #27

Open soufi opened 8 years ago

soufi commented 8 years ago

Hi,

First of all thank you for this directive that simplifies the use of bootstrap datetimepicker.

I noticed that after the initialization of datetimepicker using ng-model, the binded scope variable is set to undefined. This is causing problems when reinitializing directive the second time (when using ng-if on the directive for example).

Do you have any clean work-around ? I am using DOM to catch show event and initialize my scope variable .. ugly ...

Thank you.