Dismiss from directive oncorrect
niklilland opened this issue · 1 comments
niklilland commented
The example in the Readme file for dismissing the datepicker through the class is incorrect. It should be this:
Dismiss the datepicker from the class
import { DatePickerDirective } from 'ion-datepicker';
@ViewChild(DatePickerDirective) private datepickerDirective:DatePickerDirective;
public closeDatepicker(){
this.datepickerDirective.modal.dismiss();
}
Note this is ionic 3.6.1
misha130 commented
Thanks, will do.
Or you can PR it, will be quicker