Cordobo / angularx-qrcode

A fast and easy-to-use Angular QR Code Generator library with Ivy support
https://cordobo.github.io/angularx-qrcode/
MIT License
468 stars 125 forks source link

Cant use this inside MatDialog #167

Closed IvRRimum closed 2 years ago

IvRRimum commented 2 years ago
    this.dialog.open(DonateModalComponent, {
      data: { address: address },
    });

and inside DonateModalComponent:

<qrcode [qrdata]="'Your data string'" [width]="256" [errorCorrectionLevel]="'M'"></qrcode>
1. If 'qrcode' is an Angular component, then verify that it is part of this module.

It doesnt work only when called from inside MatDialog, in regular components, works fine..

TheDevelolper commented 2 years ago

Can you share a repo showing this?

IvRRimum commented 2 years ago

This is not a public repo :// But i think you should be able to reproduce it

TheDevelolper commented 2 years ago

Could you reproduce it in a public repo as you want help with it?

IvRRimum commented 2 years ago

I found a workaround(not too clean): https://stackoverflow.com/questions/59763017/angular-custom-elements-angular-8-material-matdialog-and-matmenu-not-working

The answer to this problem is the question.(Works for me on angular13)

TheDevelolper commented 2 years ago

Glad you got to the bottom of it.