Skip to content

Commit 00f9e72

Browse files
probilolefirenko
authored andcommitted
docs(README): fix link to google maps js api, add syntax highlight (olefirenko#89)
1 parent 203db32 commit 00f9e72

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This component uses Google Maps Places API to get geo suggests for autocompletio
3333
</html>
3434
```
3535

36-
To obtain API key please visit the [Google Developer Console](https://console.developers.google.com). The API's that you have to enable in your Google API Manager Dashboard are [Google Maps Geocoding API](https://developers.google.com/maps/documentation/geocoding/start), [Google Places API Web Service](https://developers.google.com/places/web-service/) and [Google Maps Javascript API] (https://developers.google.com/maps/documentation/javascript/).
36+
To obtain API key please visit the [Google Developer Console](https://console.developers.google.com). The API's that you have to enable in your Google API Manager Dashboard are [Google Maps Geocoding API](https://developers.google.com/maps/documentation/geocoding/start), [Google Places API Web Service](https://developers.google.com/places/web-service/) and [Google Maps Javascript API](https://developers.google.com/maps/documentation/javascript/).
3737

3838
The easiest way to use Vue Google Autocomplete is to install it from **npm** or **yarn**.
3939

@@ -235,15 +235,15 @@ Please note that you need to provide what method will listen (`v-on:placechanged
235235

236236
The example below shows the correct usage of the `types` parameter, when limiting the search to cities:
237237

238-
```
239-
<vue-google-autocomplete
240-
id="map2"
241-
ref="toAddress"
242-
classname="form-control"
243-
placeholder="Start typing"
244-
v-on:placechanged="getToData"
245-
types="(cities)"
246-
country="us"
247-
>
248-
</vue-google-autocomplete>
238+
```vue
239+
<vue-google-autocomplete
240+
id="map2"
241+
ref="toAddress"
242+
classname="form-control"
243+
placeholder="Start typing"
244+
v-on:placechanged="getToData"
245+
types="(cities)"
246+
country="us"
247+
>
248+
</vue-google-autocomplete>
249249
```

0 commit comments

Comments
 (0)