I am working on an application built using angular2 with typescript. I am using ag-grid to display data in grid but not able to find the grid api.
///
The above 'almost' got me there in ang 2 rc1 but I found i needed the Grid Options link in the html as well so
and
ngOnInit(){
this.gridOptions = {
onGridReady: () => {
this.gridOptions.api.sizeColumnsToFit();
}
};
}
this worked perfectly and the grid resized as the window moved. Thanks to dfsq as I would not have used the handy onGridReady either :)