I am using ag-grid for dataTables. I have created a component which consists of ag-grid. A unique ID is passed as input to this component and I want to give this id as grid id.
<ag-grid-ng2 #agGrid class="ag-fresh" [gridOptions]="gridOptions" [columnDefs]="columnDefs"
[rowData]="rowData">
So i want to make this id #agGrid
to be dynamic.
How can I achieve this ?