Add a basic example in the readme file

This commit is contained in:
Fawad Mirzad
2020-10-19 13:29:36 +02:00
parent 2ddf24d2a2
commit aa06b30913

View File

@@ -16,8 +16,31 @@ You can also install via Yarn
yarn add @fawmi/vue-google-maps
```
## Example
Here is a basic example
```
import { createApp } from 'vue'
import googleMap from '@fawmi/vue-google-maps'
import App from './App.vue';
const googleMapOption = {
apiKey: 'here_comes_your_api_key',
}
const app = createApp(App);
app.use(googleMap, googleMapOption)
app.mount('#app')
```
You can also install via Yarn
```
yarn add @fawmi/vue-google-maps
```
## Documentation
A detailed documentation with examples can be found at https://vue-map.netlify.app/
Checkout [https://vue-map.netlify.app](https://vue-map.netlify.app/) for a detailed documentation