Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Googlemap infowindow onclick push to page with params

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>