Giter Club home page Giter Club logo

Comments (9)

shineum avatar shineum commented on July 3, 2024 4

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.

monospaced avatar monospaced commented on July 3, 2024 1

@ananth2020 @igorkurochka @brunocascio I've updated the README with info for ES6 imports:

https://github.com/monospaced/angular-qrcode#installation

from angular-qrcode.

igorkurochka avatar igorkurochka commented on July 3, 2024 1

@monospaced thanks!

from angular-qrcode.

monospaced avatar monospaced commented on July 3, 2024

Did you add monospaced.qrcode to your app’s dependencies?

from angular-qrcode.

monospaced avatar monospaced commented on July 3, 2024

Thanks @shineum 👍

from angular-qrcode.

brunocascio avatar brunocascio commented on July 3, 2024

@monospaced

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.

igorkurochka avatar igorkurochka commented on July 3, 2024

@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.

ananth2020 avatar ananth2020 commented on July 3, 2024

I'm also having the same problem with angular 1.6.x es6, any idea?

from angular-qrcode.

ViksYelapale avatar ViksYelapale commented on July 3, 2024

@shineum Thanks a lot !!

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.