From aa06b3091340c4d08a56f76367f848cbd4f62189 Mon Sep 17 00:00:00 2001 From: Fawad Mirzad Date: Mon, 19 Oct 2020 13:29:36 +0200 Subject: [PATCH] Add a basic example in the readme file --- readme.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index c758482..f3f069e 100644 --- a/readme.md +++ b/readme.md @@ -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