From f0d5e72d656a66dd51f24b6435c6482d802449a5 Mon Sep 17 00:00:00 2001 From: grata Date: Mon, 3 Apr 2023 14:18:10 +0200 Subject: [PATCH] pls work --- src/app/home/home.component.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 45aaefc..8360af0 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -47,6 +47,10 @@ export class HomeComponent implements OnInit, AfterViewInit, OnDestroy { ngOnInit(): void { this.subs.push(this.service.getLocation("Lugano").subscribe(val => console.log(val))) + const text = 'https://aramisgrata.ch'; // sostituisci con la tua stringa + QRCode.toDataURL(text, { errorCorrectionLevel: 'H' }, (err, url) => { + this.qrCodeImage = url; + }); } ngOnDestroy() { @@ -121,12 +125,6 @@ export class HomeComponent implements OnInit, AfterViewInit, OnDestroy { } } - ngOnInit(): void { - const text = 'https://aramisgrata.ch'; // sostituisci con la tua stringa - QRCode.toDataURL(text, { errorCorrectionLevel: 'H' }, (err, url) => { - this.qrCodeImage = url; - }); - } luoghiNear() { return null;