JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 74
  • Score
    100M100P100Q67995F
  • License MIT

Angular6/7/8+ QRCode generator

Package Exports

  • an-qrcode

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (an-qrcode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

an-qrcode

an-qrcode is Angular6-8 QR Code library to generate QR Codes in Angular 6/7/8+ app.

Demo App

You can find demo app here github.com/naimmalek/an-qrcode-sample-app.

Install with Angular 8

# Angular 8
npm install an-qrcode --save

Basic Usage

Import the module and add it to your imports section in your main AppModule:

// Main Module File: app.module.ts
import { AnQrcodeModule } from 'an-qrcode';

@NgModule({
declarations: [
  AppComponent
],
imports: [
  AnQrcodeModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }

Examples: an-qrcode

Generate a QR Code from a string

here is sample code for generate qrcode

<qrcode [level]="1" [qrvalue]="'QR Code String'"></qrcode>

Parameters

Attribute Type Default Description
level Number 1 QR ECC level (1, 2, 3, 4)
qrdata String '' Your String
width Number 256 Width (any value)
height Number 256 Height (any value)

License

MIT License

Copyright (c) 2019 - present Naim Malek (naimmalek.github.io)