docs(geolocation): update watchPosition example
This commit is contained in:
parent
a03afcf0fa
commit
c2fbb4fb64
@ -167,7 +167,7 @@ export class Geolocation {
|
|||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* var subscription = Geolocation.watchPosition()
|
* var subscription = Geolocation.watchPosition()
|
||||||
* .filter((p) => p.code === undefined) //Filter Out Errors
|
* .filter((p) => p.coords !== undefined) //Filter Out Errors
|
||||||
* .subscribe(position => {
|
* .subscribe(position => {
|
||||||
* console.log(position.coords.longitude + ' ' + position.coords.latitude);
|
* console.log(position.coords.longitude + ' ' + position.coords.latitude);
|
||||||
* });
|
* });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user