0.0.4 • Published 3 years ago

@thachnuida/ngx-barcode v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Introduction

@thachnuida/ngx-barcode is an Angular Barcode Component based on JsBarcode.

Demo

Barcode Generator

Installation

$ npm install @thachnuida/ngx-barcode --save

Usage

Import the NgxBarcodeModule into your desired module:

import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';

import { NgxBarcodeModule } from '@thachnuida/ngx-barcode';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    NgxBarcodeModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Add ngx-barcode to your component:

<ngx-barcode text="Hello"></ngx-barcode>

Barcode Options

Please check doucument in JsBarcode document.

License

ngx-barcode is shared under the MIT license.