loading false when data not found aggrid code example
Example: ag grid showing no row to show when data is loading
this.gridOptions.suppressNoRowsOverlay = true;
this.service.getData()
.subscribe(data => {
if (!data || !data.length) {
this.gridOptions.suppressNoRowsOverlay = false;
this.gridOptions.api.showNoRowsOverlay();
}