Skip to content

Instantly share code, notes, and snippets.

@PersonaA
PersonaA / LoadingGoogleMapsMixin.vue
Created May 18, 2021 07:42 — forked from lakhbawa/LoadingGoogleMapsMixin.vue
Adding Google Maps to NuxtJs
<script>
const apiKey = process.env.GOOGLE_MAPS_API_KEY
export default {
props: {},
computed: {},
methods: {
injectGoogleMapsApiIfNotInjectedAlready() {
return new Promise((resolve, reject) => {
try {