Giter Club home page Giter Club logo

Comments (4)

mhluongo avatar mhluongo commented on July 3, 2024

👍 this would be handy for us as well. It'd also be nice to just point to the encoded URL, if that's what the QR code is encoding.

from angular-qrcode.

monospaced avatar monospaced commented on July 3, 2024

Hi,

Yes sorry for this! I take both of your points on board. On reflection, the change in 4.0.0 was too opinionated a use for this directive. No link at all, or a link to the encoded URL, are both very valid use cases.

So my advice for now is to use 3.1.0 if you don't want the 'download image' behaviour. If you're using bower you can specify this version:

bower install angular-qrcode#3.1.0

I will also have a ponder on the best way to add the required configuration options to select the element behaviour (download asset, link to URL, static element).

from angular-qrcode.

monospaced avatar monospaced commented on July 3, 2024

I've now released version 5.0.0.

This addresses both of the use cases in this issue.

By default there is no anchor tag injected.

Add an attribute of download to get the version 4.0.0 'click to download png' behaviour.

Add an href attribute with url value, and the qrcode will be wrapped in an anchor tag pointing to this url.

I've updated the README and the demo to show these new options.

Please let me know if you notice any issues.

from angular-qrcode.

monospaced avatar monospaced commented on July 3, 2024

5.0.1 released

improved error handling and fixed bug with canvas support detection

from angular-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.