Display Barcode Scanner value in ion-searchbar


#1

Hi All,
I have an ion- searchbar
<ion-searchbar (ionInput)=“onInput($event)” (ionCancel)=“onInput($event)”
debounce=“750” >

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

Thanks