2.0.0 • Published 1 year ago

ngx-qrcode-updated v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

FieldDescriptionTypeDefault
lineline frame qrcodenumber4
colorcolor of linestring#008000

Ouput

FieldDescriptionTypeDefault
eventdata of qrcodestring-
errorerrorany-

Component export

FieldDescriptionTypeDefault
toggleCameraActive/Inactive camerafunction-
startActive camerafunction-
stopInactive camerafunction-
playPlay functionvoid-
pausePause functionvoid-
downloadDownload functionstring-
isLoadingCheck start fnbooleanfalse
isStartStart Videobooleanfalse

Support versions

Author Information

Vietnam

MIT License. Copyright (c) 2021 DaiDH