We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d097d43 commit a4431e7Copy full SHA for a4431e7
packages/nativescript-qr/README.md
@@ -6,7 +6,28 @@ npm install @nstudio/nativescript-qr
6
7
## Usage
8
9
-// TODO
+### Angular
10
+
11
+Component / Module:
12
+```typescript
13
+import { Image } from "@nativescript/core";
14
+import { Qr } from "@nstudio/nativescript-qr";
15
+export class YourComponent{
16
+...
17
+ onImageLoaded(args) {
18
+ const image = args.object as Image;
19
+ const result = Qr.generate('Hello World');
20
+ image.imageSource = result;
21
+ }
22
23
+}
24
+```
25
26
+View:
27
28
+```html
29
+ <Image src="" (loaded)="onImageLoaded($event)"></Image>
30
31
32
## License
33
0 commit comments