我正在使用 Angular 4 应用程序ngbDatePicker
。遵循DatePicker
HTML。
<div class="datepicker mgn-btm-twnty wdth100percent" (document:click)="closePicker(dateControl)" (click)="$event.stopPropagation()">
<label class="mgn-btm-ten required_start startdate">Date<i class="fa fa-asterisk" aria-hidden="true"></i></label>
<div class="form-inline">
<div class="form-group">
<div class="input-group">
<input class="form-control" placeholder="dd-mmm-yyyy" name="date" [(ngModel)]="date"
firstDayOfWeek="1" ngbDatepicker #dateControl="ngbDatepicker" required="false" (navigate)="date = $event.next">
<div class="input-group-addon" (click)=dateControl.toggle()>
<i class="material-icons">date_range</i>
</div>
<label class="animate-border"></label>
</div>
</div>
</div>
</div>
我们的要求是弹出窗口打开highlight
时默认为当前日期。datepicker
如果您对此有任何解决方案,请与我分享。