ngx-barcode

An angular component for Angular 4+ for creating 1-D barcodes based on Lindell's JsBarcode

  • 所有者: yobryon/ngx-barcode
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖


An angular component for Angular 4+ for creating 1-D barcodes based on Lindell's JsBarcode.

Demo

Basic demo.

Features

  • supports all barcode formats provided by JsBarcode
    • CODE128
    • EAN
    • CODE39
    • ITF-14
    • MSI
    • Pharmacode
    • Codabar

Installation

To use ngx-barcode in your project, install it via npm:

$ npm install ngx-barcode --save

Usage

Import the NgxBarcodeModule into your desired module:

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:

<!-- Adding a barcode in app.component.html -->
<h1>
  {{title}}
</h1>
<ngx-barcode [bc-value]="value" [bc-display-value]="true"></ngx-barcode>

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Bryon Williams

主要指標

概覽
名稱與所有者yobryon/ngx-barcode
主編程語言JavaScript
編程語言JavaScript (語言數: 2)
平台
許可證
所有者活动
創建於2017-04-25 18:10:19
推送於2022-12-10 18:16:29
最后一次提交2020-07-20 18:59:54
發布數6
最新版本名稱v0.2.4 (發布於 2017-07-23 16:43:09)
第一版名稱v0.1.1 (發布於 2017-04-25 11:50:28)
用户参与
星數81
關注者數3
派生數51
提交數50
已啟用問題?
問題數33
打開的問題數22
拉請求數1
打開的拉請求數38
關閉的拉請求數16
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?