@Fragan wrote:
Hey, i have a googlemap infowindow and a button i want to push to another page when clicking on that button with some params, here’s my code:
google.maps.event.addListener(infowindow, 'domready', () => { var clickableItem = document.getElementById('clickableItem'); clickableItem.addEventListener('click', () => { this.zone.run( () => { console.log("wlidoz "+ data[i].idprof); this.navCtrl.push(ProfilPage, { profilId: data[i].idprof }); }); }); });problem is that on the console.log
data[i].idprof, it shows undefined but this variable is defined beforegoogle.map.event.addListener, Im sorry for my english but im really struck into this for days…
Posts: 1
Participants: 1