qrcodejs icon indicating copy to clipboard operation
qrcodejs copied to clipboard

Import into Angular 4/5

Open Warriormuffin opened this issue 6 years ago • 3 comments

Best way to import this package into an angular 4/5 application?

Warriormuffin avatar Apr 03 '18 22:04 Warriormuffin

I'm using it like this: import * as QRCode from 'qrcodejs2';

yahyaKacem avatar May 02 '18 14:05 yahyaKacem

I'm using it like this: import * as QRCode from 'qrcodejs2';

Is qrcodejs2 the ES6 compatible package? How did you know that?

gianlucag avatar Jul 10 '21 15:07 gianlucag

I wasn't able to get this to work in an ES6 script. Perhaps it doesn't. But if it does, updating the documentation with an example would be great. This issue was opened in 2018, it's 2024 now and

<script type="module">
import ...

is a very common way to using javascript libraries like this.

tacman avatar May 05 '24 11:05 tacman