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

ngFor generating qr #2

Open
jesuscano80 opened this issue Aug 29, 2023 · 1 comment
Open

ngFor generating qr #2

jesuscano80 opened this issue Aug 29, 2023 · 1 comment

Comments

@jesuscano80
Copy link

jesuscano80 commented Aug 29, 2023

Angular 13
"ngx-qrcode-styling": "^1.2.0",

I try to generate massive qrcode with ngFor but always use the first item to all. How can I generate them?

"<div *ngFor="let asset of qrListToPrint" class="w-full">
"


" <ngx-qrcode-styling [type]="'svg'" [shape]="'square'" [width]="300" [height]="300" [margin]="0"
" [data]="this.generateQRData(asset)">
"
"

"
{{asset.AssetNameSL}}

"
{{asset.SubclassificationName}}

"

"

"

generateQRData(asset: AssetEntity): string {
return Name: ${asset.AssetNameSL}, Code: ${asset.AssetCode}, Category: 3, Id: ${asset.AssetId}, ProjectId: ${asset.ProjectId}, TypeId: ${asset.SubclassificationId}, TypeName: ${asset.SubclassificationName};
}

@id1945
Copy link
Owner

id1945 commented Sep 18, 2023

@jesuscano80 Can you post this bug on stackblitz?

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