ngx-qrcode-updated
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

ngx-scanner-qrcode

This library is built to provide a solution scanner QR code.
This library takes in raw images and will locate, extract and parse any QR code found within.
This demo stackblitz.

Logo

Installation

Install ngx-scanner-qrcode from npm:

npm install ngx-scanner-qrcode --save

Add wanted package to NgModule imports:

import { NgxScannerQrcodeModule } from 'ngx-scanner-qrcode';
@NgModule({
    imports: [
        NgxScannerQrcodeModule,
    ]
})

In the Component:

<ngx-scanner-qrcode #action="scanner"></ngx-scanner-qrcode>
<span>{{action.data}}</span>
<button (click)="action.toggleCamera()" [disabled]="action.isLoading">{{action.isStart ? 'Stop' : 'Start'}}</button>

API Documentation

Input

Field Description Type Default
line line frame qrcode number 4
color color of line string #008000

Ouput

Field Description Type Default
event data of qrcode string -
error error any -

Component export

Field Description Type Default
toggleCamera Active/Inactive camera function -
start Active camera function -
stop Inactive camera function -
play Play function void -
pause Pause function void -
download Download function string -
isLoading Check start fn boolean false
isStart Start Video boolean false

Support versions

Support versions
Angular 9 1.1.0
Angular 8 1.0.17

Author Information

Author Information
Author DaiDH
Phone +84845882882

Vietnam

MIT License. Copyright (c) 2021 DaiDH

Package Sidebar

Install

npm i ngx-qrcode-updated

Weekly Downloads

6

Version

2.0.0

License

MIT

Unpacked Size

2.5 MB

Total Files

42

Last publish

Collaborators

  • matejbucek