You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
angular2-qrcode is a component that you can easily integrate into your project. It relies on [qrcode-generator](https://github.com/kazuhikoarase/qrcode-generator) to generate QR Codes.
3
+
angular2-qrcode is a component that you can easily integrate into your project. It relies on [qrious](https://github.com/neocotic/qrious) to generate QR Codes.
4
+
5
+
## Breaking Changes for 2.0.0
6
+
7
+
`data` has been replaced with `value`. For those that don't need the new features of `2.0.0`, just keep using `1.0.5`. No change will be needed unless you upgrade.
8
+
9
+
The `type` field has also been removed.
4
10
5
11
## Install
6
12
@@ -27,7 +33,7 @@ import { QRCodeModule } from 'angular2-qrcode';
27
33
In component template:
28
34
```
29
35
<div>
30
-
<qr-code [data]="'All QR Code data goes here!'" [size]="150"></qr-code>
36
+
<qr-code [value]="'All QR Code data goes here!'" [size]="150"></qr-code>
31
37
</div>
32
38
```
33
39
@@ -42,7 +48,7 @@ import {QRCodeComponent} from 'angular2-qrcode';
42
48
directives: [QRCodeComponent],
43
49
template: `
44
50
<div>
45
-
<qr-code [data]="'All QR Code data goes here!'" [size]="150"></qr-code>
51
+
<qr-code [value]="'All QR Code data goes here!'" [size]="150"></qr-code>
46
52
</div>
47
53
`
48
54
})
@@ -52,14 +58,16 @@ import {QRCodeComponent} from 'angular2-qrcode';
0 commit comments