Closed HulioEglesias closed 4 years ago
I use Vue and this is my code: in template:
<MLKitBarcodeScanner width="260" height="380" beepOnScan="true" formats="EAN_13" preferFrontCamera="false" supportInverseBarcodes="false" :torchOn="false" @scanResult="onScanResult"> </MLKitBarcodeScanner>
methods: { onScanResult( result ) { // this.codeText = JSON.stringify(result); console.log('SCANNN') console.log(result.barcodes); } }
And in console I got undefined. How should I get a code?
Barcodes in result.value.barcodes
result.value.barcodes
I use Vue and this is my code: in template:
And in console I got undefined. How should I get a code?