Coder Social home page Coder Social logo

Comments (15)

thirupathireddygopal avatar thirupathireddygopal commented on July 22, 2024 2

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.

 avatar commented on July 22, 2024

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.

Cordobo avatar Cordobo commented on July 22, 2024

I'm having a look into it, thanks for your feedback.

from angularx-qrcode.

usachev-dev avatar usachev-dev commented on July 22, 2024

Same here

from angularx-qrcode.

gmagaton avatar gmagaton commented on July 22, 2024

I made a workaround refreshing page after setting qrcode value.

from angularx-qrcode.

Geschan avatar Geschan commented on July 22, 2024

Same problem here - is there any workarround, without refreshing the page?

from angularx-qrcode.

matteomason avatar matteomason commented on July 22, 2024

Same issue here!

from angularx-qrcode.

Cordobo avatar Cordobo commented on July 22, 2024

Please update angularx-qrcode to 1.1.6 (Angular 5)

from angularx-qrcode.

Cordobo avatar Cordobo commented on July 22, 2024

I uploaded a sample app with a working dynamic update:
https://github.com/Cordobo/angularx-qrcode-sample-app

from angularx-qrcode.

rahulr-96 avatar rahulr-96 commented on July 22, 2024

Any update on this?

from angularx-qrcode.

rahulr-96 avatar rahulr-96 commented on July 22, 2024

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.

Joroooo avatar Joroooo commented on July 22, 2024

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.

rahulr-96 avatar rahulr-96 commented on July 22, 2024

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.

Joroooo avatar Joroooo commented on July 22, 2024

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.

EslamKholeef avatar EslamKholeef commented on July 22, 2024

I tried solutions from other planets and nothing worked!

from angularx-qrcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.