Javascript map API - marker click listener doesn´t work with ionic nav push


#1

Hello Sirs,

I just created a map with a marker, with the intention of clicking on the marker and the same throw me to the next page using nav push, but I got the following error - Can not read property ‘push’ of undefined!

below is the code snippet I used to add this event to my marker:

marker.addListener(‘click’, () => {
this.nav.push(TabsPage, {});
});