I have a component like this <AgentCard :agent="agent" />, where agent is an object with properties like FirstName, LastName, Recent Orders etc...
Now I need to show this component inside a Google Maps InfoBox. The infoWindow.setContent() method (the Google Maps API to display the popup info window) accepts only an HTML string, so I am trying to render the <AgentCard> manually, get the HTML content of the rendered component, and pass it on to the setContent() method.
I tried Vue.compile('<AgentCard :agent="agent" />').render(), but this doesnt work. How do I render a Vue component manually, and get its HTML content?