Open sakhisoufiane opened 5 years ago
I added a template reference on the tag <ng-datepicker>
and the use reset()
method on my component.
HTML:
<ng-datepicker #date></ng-datepicker>
COMPONENT:
@ViewChild('date') date: ElementRef;
resetDate() {
this.date.reset();
}
It's been mentioned that this feature has been added, but we can't figure out how to implement it ? Anyone knows a way to clear the selected date from the ui ?