Comments (9)
Need 3 scripts
<script type="text/javascript" src="//monospaced.github.io/bower-qrcode-generator/js/qrcode.js"></script>
<script type="text/javascript" src="//monospaced.github.io/bower-qrcode-generator/js/qrcode_UTF8.js"></script>
<script type="text/javascript" src="//monospaced.github.io/angular-qrcode/angular-qrcode.js"></script>
And set module dependency.
angular.module('app', ['monospaced.qrcode']);
from angular-qrcode.
@ananth2020 @igorkurochka @brunocascio I've updated the README with info for ES6 imports:
https://github.com/monospaced/angular-qrcode#installation
from angular-qrcode.
@monospaced thanks!
from angular-qrcode.
Did you add monospaced.qrcode
to your app’s dependencies?
from angular-qrcode.
Thanks @shineum 👍
from angular-qrcode.
Doesn't work for me:
Uncaught ReferenceError: qrcode is not defined qrcode_UTF8.js on line 59
My import code:
import 'angular-qrcode/node_modules/qrcode-generator/js/qrcode.js';
import 'angular-qrcode/node_modules/qrcode-generator/js/qrcode_UTF8.js';
import 'angular-qrcode/angular-qrcode.js';
angular.module('app', ['monospaced.qrcode'])
Template code:
<qrcode data="{{vm.code}}"></qrcode>
from angular-qrcode.
@monospaced For some reason it doesn't work if installed using npm install angular-qrcode
app.js code:
import 'qrcode-generator';
import 'angular-qrcode';
angular.module('app', ['monospaced.qrcode'])
Template code:
<qrcode data="{{qrstring}}" size="160" version="15" error-correction-level="M"></qrcode>
any thoughts?
from angular-qrcode.
I'm also having the same problem with angular 1.6.x es6, any idea?
from angular-qrcode.
@shineum Thanks a lot !!
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.