an-qrcode
is simple angular library to generate QR Codes in Angular 6+ app.
You can find demo app here github.com/naimmalek/an-qrcode-sample-app.
npm install an-qrcode --save
// Main Module File: app.module.ts
import { AnQrcodeModule } from 'an-qrcode';
@NgModule({
declarations: [
AppComponent
],
imports: [
AnQrcodeModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
here is sample code for generate qrcode
<qrcode [level]="1" [qrvalue]="'QR Code String'"></qrcode>
Attribute | Type | Default | Description |
---|---|---|---|
level | Number | 1 | QR ECC level (1, 2, 3, 4) |
qrvalue | String | '' | Your String |
size | Number | 200 | (Width/Height value) |
MIT License
Copyright (c) 2019 - present Naim Malek (naimmalek.github.io)