0π
β
Here 2 approaches that will help you to achieve such a functionality, with cleaner templates and better code:
Constructor of google.maps.InfoWindow
accepts also DOM node, so you can create component with your code and then pass ref
of it to InfoWindow
constructor.
Another way is to use vue-google-maps.
Source:stackexchange.com