[Vuejs]-Vue – add v-on directice in generated html code

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.

Leave a comment