mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
docs(googlemaps): change observable to promise in main docs (#624)
GoogleMaps.one() returns Promise not Observable
This commit is contained in:
commit
97a7f1a4e7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user