Link on maps infowindows

hi i’ll want to put a link to another page of my app in a infowindows of google maps… but nothing worked…
Anyone have some ideas??
Thanks in advance

You need to use ngZone:

import { NgZone } from '@angular/core';

constructor(public ngZone: NgZone) {}

(<any>window).ionicPageRef = {
    zone: this.ngZone,
    component: this
};

let infoWindow = new google.maps.InfoWindow({
    content: <button onClick='window.ionicPageRef.zone.run(function () { window.ionicPageRef.component.MyFucntion() })'>My button</button>"
});

Maybe you can help me here?

2 Likes

Hi, thank you so much i’ll try as soon as possible.

Hi you can find any solution for this issue?

i need to add a click event in my infowindow

You are the best and a lifesaver GabrieleV