import { Component } from "@angular/core" ; import { ICellRendererAngularComp } from "ag-grid-angular/main" ; @ Component ( { selector : 'clickable-cell' , template : `
        <ag-clickable (onClicked)="clicked($event)" [cell]="cell"></ag-clickable>
    ` } ) export class ClickableParentComponent implements ICellRendererAngularComp { private params : any ; public cell : any ; agInit ( params ) { this . params = params ; this . cell = { row : params . value , col : params . colDef . headerName } ; } public clicked ( cell ) { alert ( "Child Cell Clicked: " + JSON . stringify ( cell ) ) ; } refresh ( ) { return false ; } }