Google map javascript infowindow click


i had impletement a google inside my app and add few marker…now i try to do a on click in the google map infowindow and push to a new page to display detail about the location but have no luck…all i found on internet is using jquery class selector to implement the onclick function…in ionic2 i have no idea how to achieve the samething


if I understand correctly, you want to be able to push a page from clicking a button? in your page template you would add (click)="function()" where function is the function to push a page. you can also pass a parameter to the function by doing (click)="function(parameter)".

here’s an example for you:



        <ion-item-sliding *ngFor="let detail of details">
                <button ion-button color="primary" (click)="showDetail(detail)">edit</button>


import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { DetailPage } from '../detail/detail;'

    selector: 'page-example',
    template: 'example.html'
export class ExamplePage {
    details: Object[] = [{
        title: 'test',
        content: 'test content'
    }, {
        title: 'test 2',
        content: 'test 2 content'

    constructor(private nav: NavController) {}

    showDetail(detail) {
        this.nav.push(DetailPage, detail);


nope…i want to add a click event into InfoWindow inside google map…