pls work
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user