Start date in UIBootstrap datePicker

I am currently working on a dump of angular. I am using UIBootstrap datepicker for this. But I ran into a problem. I need to use init-date attribute:

init-date: Initial date representation when no model value is specified.

The attribute appears to be only available in the datepicker directive. Thing is, I sued the datepicker popup and not the datepicker itself. There is html for datepicker-popup


<input type="text" class="form-control "  datepicker-popup="dd/MM/yyyy" ng-model="date"  is-open="opened" datepicker-options="dateOptions" />
  <span class="input-group-btn">
    <button type="button" class="btn btn-default" ng-click="openCalendar($event)"><i class="glyphicon glyphicon-calendar"></i></button>


I want to know If there is something like init date for popup-datepicker. I had options for the datepicker options, but I couldn't do something who works with this idea. That said, is it possible for it to work with these datepicker options?


source to share

1 answer

Well It was definitely in the datepicker parameters, but it doesn't work due to an issue due to a bug in angular-ui-bootstrap This issue is addressed in the latest version of angular-ui-bootstrap (0.13.0)



All Articles