diff --git a/README.md b/README.md index 3fcc8b0ee..2da5cf8ed 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,7 @@ Geolocation.getCurrentPosition().then(pos => { console.log('lat: ' + pos.coords.latitude + ', lon: ' + pos.coords.longitude); }); -let watch = Geolocation.watchPosition(); -watch.subscribe(pos => { +let watch = Geolocation.watchPosition().subscribe(pos => { console.log('lat: ' + pos.coords.latitude + ', lon: ' + pos.coords.longitude); });