docs(googlemaps): change observable to promise in main docs (#624)

GoogleMaps.one() returns Promise not Observable
This commit is contained in:
Ibrahim Hadeed 2016-10-03 14:15:56 -04:00 committed by GitHub
commit 97a7f1a4e7

View File

@ -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