@kurtommy wrote:
Hi,
I'm starting to deal with ionic 2 with typescript. I'd like to add this pluginionic plugin add cordova-plugin-geolocation
but typescript complain for this code
let watch = Geolocation.watchPosition();
watch.subscribe((data) => {
//data.coords.latitude
//data.coords.longitude
console.log(data)
});because the lack of missing type, i've tried with this
Geolocation: any;
but doesn't workI'm new of typescript. There is a guide/example/tutorial on how to do that?
Many thanks
Posts: 3
Participants: 2