import { Component } from "@angular/core" ; import { ICellRendererAngularComp } from "ag-grid-angular/main" ; @ Component ( { selector : 'child-cell' , template : `<span><button style="height: 20px" (click)="invokeParentMethod()" class="btn btn-info">Invoke Parent</button></span>` , styles : [ `.btn {
            line-height: 0.5
        }` ] } ) export class ChildMessageComponent implements ICellRendererAngularComp { public params : any ; agInit ( params ) { this . params = params ; } public invokeParentMethod ( ) { this . params . context . componentParent . methodFromParent ( `Row: ${ this . params . node . rowIndex }, Col: ${ this . params . colDef . headerName }` ) ; } refresh ( ) { return false ; } }