I have an ion- searchbar
<ion-searchbar (ionInput)=“onInput($event)” (ionCancel)=“onInput($event)”
and a barcode scanner
<button id=“search-scan-button” (click)=“scanBarcode()”>
I want to show result of barcode scan (which is string) in Searchbar as a value and on the basis of that, I want to perform my search.
Is there any way to achieve this. I’m using ionic 3.20.0