I started using vue. How can I include Google API to my page? This is my code:
<template>
<div id="map"></div>
</template>
<script>
export default {
methods: {
init () {
var map
map = new google.maps.Map(document.getElementById('map'), {
zoom: 16,
center: new google.maps.LatLng(-33.91722, 151.23064),
mapTypeId: 'roadmap'
})
}
}
}
</script>
Where can I set
<script src="https://maps.googleapis.com/maps/api/js?key=YourKey&callback=App.map" async defer></script>