I'm using the google maps api in my ionic 2 project. I have a service for creating the markers and cluster them. I'm creating a info window for each marker like this:
content = "<h4>Title</h4><p onclick=\"callFunctionFromServiceHere()\">Go to new page</p>";
var infoWindow = new google.maps.InfoWindow({
content: content
});
I want to push a new page if I click on "Go to new page". How is that possible? Because I think the HTML of the info windows does not have access to my ionic 2 service.