How to detect date selection in ng-bootstrap Datepicker on input field?
问题 We use the ng-bootstrap Datepicker as Directive in our project: <input class="form-control" name="dp" ngbDatepicker #d="ngbDatepicker" (blur)="d.close()" [(ngModel)]="model" (ngModelChange)="onDateSelected()"> The current behaviour is that onDateSelected() is called when a date in the datepicker is selected, as well as every time a change is made to the input field. The desired behaviour is that onDateSelected() is called whenever the user clicks on a date in the datepicker or moves the