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