[Vuejs]-Using google place API for autocomplete without callback function in vuejs

0👍

According to the docs including a callback is mandatory – you can change your script tag to have the global function name like this:

<script>
   window.initMap = function () {
      ...
   };
</script>
<script async src=".../api/js?key=[KEY]&libraries=places&callback=initMap"></script> – 

Leave a comment