这是我的代码,
<div tabindex="0" (blur)="testFunction(datePicker)">
<input class="form-control"
placeholder="Selected Date"
name="selectedDate"
[(ngModel)]="selectedDate"
ngbDatepicker
#datePicker="ngbDatepicker"
required>
</div>
我想在发生模糊事件时访问父div中的datepicker元素。