[Vuejs]-Vue – vue2-google-maps load api key dynamically with props?

0👍

Hmn I’ve never heard about it and the project page is asking for contributers and this lib has more than 100 issues. So my suggestion is change the lib. I’ve made good experiences with https://github.com/KoRiGaN/Vue2Leaflet

0👍

You can do it on beforeMount() lifecycle hook.

     beforeMount() { 
        loadGmapApi({
            key: apiKeyProp
        });
      }

Leave a comment