An angular component for Angular 4+ for creating 1-D barcodes based on Lindell's JsBarcode
npm install ngx-barcodeA barcode component for Angular4+.
___
An angular component for Angular 4+ for creating 1-D barcodes based on Lindell's JsBarcode.
To use ngx-barcode in your project, install it via npm:
``bash`
$ npm install ngx-barcode --save
Import the NgxBarcodeModule into your desired module:
`typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import ngx-barcode module
import { NgxBarcodeModule } from 'ngx-barcode';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxBarcodeModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
`
Once the library is imported, you can use the ngx-barcode component in your Angular application:
`xml`
{{title}}
To generate all .js, .d.ts and *.metadata.json files:
`bash`
$ npm run build
To lint all *.ts files:
`bash``
$ npm run lint
MIT © Bryon Williams