Lets say I create an Element with
let centerIconDiv = document.createElement('div');
centerIconDiv.className += 'centerIcon box-shadow m-2 rounded-2';
And add this to google maps
map.controls[google.maps.ControlPosition.TOP_RIGHT].push(centerIconDiv);
How do I add Vue directive to the "centerIconDiv"? I want to have something like v-if or v-show and add :class etc.
I can't really find the solution, because I don't need to render a template. What can I do?