As my requirement i want to hide the ag-grid on angular component load, based on customer value selection from drop down it call apis & load with the api data into the ag-grid.
in short initially if no data then not to display whole grid, empty doesn't look nice
You could try wrapping it with a simple
*ngIfand see if the grid still loads right.If that doesn't work, the next easiest thing would be to wrap it in an element with css that makes it hidden/changes height to 0 until the data is loaded.