Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant use this inside MatDialog #167

Closed
IvRRimum opened this issue Mar 31, 2022 · 5 comments
Closed

Cant use this inside MatDialog #167

IvRRimum opened this issue Mar 31, 2022 · 5 comments

Comments

@IvRRimum
Copy link

    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
Copy link

Can you share a repo showing this?

@IvRRimum
Copy link
Author

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

@TheDevelolper
Copy link

TheDevelolper commented Mar 31, 2022

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

@IvRRimum
Copy link
Author

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
Copy link

Glad you got to the bottom of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants