[Ionic 4] How should I clear searchbar programmaticaly?

#1

How should I clear the searchbar input programmatically? it look like the clearInput method is removed in ionic 4.

#2

please check Following doc :-

(ionCancel)="onCancel($event) method call in home.page.ts file

public myInput:any; // declare globaly

onCancel(){
this.myInput=""
}