Changed observable to promise in docs

GoogleMaps.one() returns Promise not Observable
This commit is contained in:
Nakul Gulati 2016-10-03 18:50:40 +05:30 committed by GitHub
parent a99b753d2d
commit e9e37f33f9

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