0
I’m having trouble generating coordinates on Ionic using geolocation
. It only works if you press several times the button that calls the function, until the coordinates appear. So, I wanted to know how to make a part of the code call the function automatically, without me updating "manually"?
<ion-item>
<ion-input type="text" [(ngModel)]="cad.longitude" value="{{long}}" (click)="local()" readonly>
</ion-input>
</ion-item>
It worked fine. Thank you!
– Max