This commit is contained in:
grata
2023-04-03 14:18:10 +02:00
parent dc8d60ff06
commit f0d5e72d65

View File

@@ -47,6 +47,10 @@ export class HomeComponent implements OnInit, AfterViewInit, OnDestroy {
ngOnInit(): void { ngOnInit(): void {
this.subs.push(this.service.getLocation("Lugano").subscribe(val => console.log(val))) 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() { 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() { luoghiNear() {
return null; return null;