Skip to content

sascha10000/ngx-qr-with-image

Repository files navigation

NgxQrWithImage

Install the package with the following commands.

npm install ngx-qr-with-image angular2-qrcode

Include in Module:

import { NgxQrWithImageModule } from 'ngx-qr-with-image';
...
  imports: [
    ...
    NgxQrWithImageModule
  ]
...

Usage:

<qr-img img="yourImage.png" content="content_shown_by_qr_code" 
        size="200"
        img-width="30"
        img-height="30"
        (change)="someFunction($event)
>
</qr-img>

size, img-width, img-height are not mandatory

Example for "someFunction":

someFunction(event){
    console.log(event);
    // maybe use file-save 
    // saveAs(event, "someFile.png")
  }

About

Example for a component that displays a qr code with an image.

Resources

Stars

Watchers

Forks

Packages

No packages published