From c2fbb4fb6407ecc6411d682ec5e46a785b7bf2b2 Mon Sep 17 00:00:00 2001 From: Ibby Date: Mon, 30 Jan 2017 11:43:58 -0500 Subject: [PATCH] docs(geolocation): update watchPosition example --- src/plugins/geolocation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/geolocation.ts b/src/plugins/geolocation.ts index 87063025e..37be828e8 100644 --- a/src/plugins/geolocation.ts +++ b/src/plugins/geolocation.ts @@ -167,7 +167,7 @@ export class Geolocation { * * ```typescript * var subscription = Geolocation.watchPosition() - * .filter((p) => p.code === undefined) //Filter Out Errors + * .filter((p) => p.coords !== undefined) //Filter Out Errors * .subscribe(position => { * console.log(position.coords.longitude + ' ' + position.coords.latitude); * });