Comments (15)
it is not working dynamically when i change the value, at first time when the component instantiate it works but when i change the value dynamically it is not refelecting
from angularx-qrcode.
I am also facing this issue. I am passing updating the qrcode data using api but it does not generates the qr code.
from angularx-qrcode.
I'm having a look into it, thanks for your feedback.
from angularx-qrcode.
Same here
from angularx-qrcode.
I made a workaround refreshing page after setting qrcode value.
from angularx-qrcode.
Same problem here - is there any workarround, without refreshing the page?
from angularx-qrcode.
Same issue here!
from angularx-qrcode.
Please update angularx-qrcode to 1.1.6 (Angular 5)
from angularx-qrcode.
I uploaded a sample app with a working dynamic update:
https://github.com/Cordobo/angularx-qrcode-sample-app
from angularx-qrcode.
Any update on this?
from angularx-qrcode.
Any update on this?
I found a workaround
in html:
<qrcode *ngIf="downloadUrl" [qrdata]= "downloadUrl" [width]="256" [errorCorrectionLevel]="'M'"></qrcode>
in ts:
this.downloadUrl = undefined this.downloadUrl = url; this.cdr.detectChanges();
assigning undefined prevents generating unnecessary multiple qr code
from angularx-qrcode.
I tried to workaround.
Does not update it on my side even that i use the string firstly as undefined and i use changeDetectorRef
from angularx-qrcode.
I tried to workaround.
Does not update it on my side even that i use the string firstly as undefined and i use changeDetectorRef
Please provide the code that you tried
from angularx-qrcode.
Well i fixed. It is being changed now. But the change appears long after the string has changed. Meaning the code is not generated when my string changes but some seconds after it.
qrCodeLink: string | undefined = undefined;
isShowingCode = false;
<qrcode
*ngIf="isShowingCode"
#qrCodeElement
[elementType]="'img'"
id="qr-code"
[qrdata]="qrCodeLink ?? ''"
[allowEmptyString]="true"
[ariaLabel]="xxx"
[cssClass]="'center'"
[colorDark]="'#000000ff'"
[colorLight]="'#ffffffff'"
[errorCorrectionLevel]="'M'"
[imageSrc]="'../../../assets/img/logo_symbol.png'"
[imageHeight]="60"
[imageWidth]="60"
[margin]="4"
[scale]="1"
[title]="'xxx'"
[width]="200"
>
from angularx-qrcode.
I tried solutions from other planets and nothing worked!
from angularx-qrcode.
Related Issues (20)
- QR-Code not displayed in Google Chrome when center image is defined HOT 3
- qrCode not working in dialog window! HOT 4
- [email protected] (Angular v8) should have a callback for returning the url when is created HOT 1
- Accidentally pulling in @types/node HOT 7
- Support for Angular 16 HOT 5
- How many string can [qrdata] hold? HOT 1
- angular 16.1.8 declare var AbortSignal: error HOT 4
- When i scan the QR code the accents are replaced with chinese characters HOT 1
- Is it possible to get the Base64 image string for a QR code in a TS file? HOT 3
- qrcode types missing HOT 7
- When i initialize the QR code,Chrome console show : Uncaught (in promise) SyntaxError: Unexpected token '�', "�PNG
- Support for Angular 17 HOT 8
- Support qrCodeURL (EventEmitter) for 12.0.3 version HOT 1
- Ionic Capacitor NSURLResponse error HOT 2
- Could not find a declaration file for module 'qrcode' HOT 9
- types.ts RGBAColor issue HOT 1
- Warning on Compilation: Dependency on CommonJS 'qrcode' Module Causes Optimization Bailouts HOT 2
- qrcode module is not ESM HOT 1
- Please add support for Angular v18 HOT 7
- Android rendering? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularx-qrcode.