diosney / angular-bootstrap-datetimepicker-directive

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

two-way binding #6

Closed achurak closed 9 years ago

achurak commented 9 years ago

Two-way binding doesn't seem to work. Here's an example:

<div class="input-group" datetimepicker datetimepicker-options="{{ datetimepicker_time_options }}" >
                                <input type="text" class="form-control" ng-model="schedule.weekdays_start" id="weekdays_start" /> 
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-time"></span>
                                </span>
<pre>{{ schedule.weekdays_start }}</pre>

pre stays empty when I change the date/time.

achurak commented 9 years ago

Fixed. The pre element was in a wrong place.

diosney commented 9 years ago

Hi! Happy to know that you fixed your issue.

Thanks for using the directive.