From e9e37f33f98b0f3a97641bc583b3addcdb1d3db0 Mon Sep 17 00:00:00 2001 From: Nakul Gulati Date: Mon, 3 Oct 2016 18:50:40 +0530 Subject: [PATCH] Changed observable to promise in docs GoogleMaps.one() returns Promise not Observable --- src/plugins/googlemaps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/googlemaps.ts b/src/plugins/googlemaps.ts index 6437c64a2..86cdb96e3 100644 --- a/src/plugins/googlemaps.ts +++ b/src/plugins/googlemaps.ts @@ -60,7 +60,7 @@ export const GoogleMapsAnimation = { * let map = new GoogleMap(mapElement); * * // listen to MAP_READY event - * map.one(GoogleMapsEvent.MAP_READY).subscribe(() => console.log('Map is ready!')); + * map.one(GoogleMapsEvent.MAP_READY).then(() => console.log('Map is ready!')); * * * // create LatLng object