How can I subscribe to the "done" event in Ionic2, where I want to trigger a function after selecting a date?
<ion-icon class="moreicon" name="funnel">
<ion-datetime type="button" [(ngModel)]="myDate" (click)="getData()"></ion-datetime>
</ion-icon>
In my TypeScript file, I have called the function but when I select a date for the first time, my data is not filtered. The filtered data is only displayed after clicking on the filter icon again. How can I subscribe to the "done" event in the datetime picker to ensure that my data is filtered immediately upon date selection?