Comments (4)
👍 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.
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.
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.
5.0.1 released
improved error handling and fixed bug with canvas support detection
from angular-qrcode.
Related Issues (20)
- Copy QRCode with CTRL+C HOT 2
- not displaying QR code HOT 3
- "qrcode" global naming has conflict with another library which scans qrcode HOT 1
- qrcode is not defined HOT 5
- qrcode will not be generated when 'data' string is too long
- Not see nothing HOT 2
- Wrong qrcode-generator version in bower.json HOT 5
- Download qr code with unique name HOT 1
- url too long HOT 1
- Download is not working on MS Edge HOT 1
- How to print on a device HOT 1
- angularjs bower HOT 2
- Printing issues HOT 2
- qrcode is not defined HOT 2
- Error not working HOT 1
- not an angular project HOT 1
- simply its an html code HOT 1
- Demo not working HOT 2
- bower-qrcode-generator has invalid git url, sometimes it does not work. HOT 2
- How to set size of QR code with higher version number (module)
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 angular-qrcode.