koss-lebedev/bootstrap-duration-picker

Respect ngModel value on init

Closed this issue · 1 comments

Hi,

When I initialize, the ngModel is ignored and it puts the value to 0

You should read the value in ngModel and do the reverse calculation to fill the inputs

This is not AngularJS plugin, so ngModel doesn't make sense in its context. If you need to set the initial value, set the value of the HTML input to which plugin will be applied before you call .durationPicker()