Search code examples
javascriptangulartypescriptbarcode

How to generate barcode in angular 6?


I got a small issue about how to display a code generated based on IF condition and HTML element on barcode in Angular 6

so in the code below I want to generate the (L)8257 on the barcode https://stackblitz.com/edit/angular-vbwsg3

Appreciate your help.


Solution

  • Try this: https://stackblitz.com/edit/angular-xybduw

    I added a [(ngModel)]="isChecked" to the checkbox and added a read-only property barcodeValue to the typescript.