yobryon / ngx-barcode

An angular component for Angular 4+ for creating 1-D barcodes based on Lindell's JsBarcode
https://yobryon.github.io/ngx-barcode
81 stars 53 forks source link

Is it possible to validate barcode ? #29

Open przemoga opened 4 years ago

przemoga commented 4 years ago

If barcode is wrong svg graphic will not be displayed. Is it possible to validate barcode correctness from code different than checking like this ?

(this.barElement as NgxBarcodeComponent).bcElement.nativeElement.innerText.length === 0)