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
派生数53
提交数50
已启用问题?
问题数33
打开的问题数22
拉请求数1
打开的拉请求数38
关闭的拉请求数16
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?