misha130/ion-datepicker

Dismiss from directive oncorrect

Closed this issue · 1 comments

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

Thanks, will do.
Or you can PR it, will be quicker