Now I have declaration array as:
public invoices: IInvoice[] = [];
Below it is filled by data from response:
private load(): void {
this.invoiceService.get().subscribe((data: any) => {
this.invoices = data;
});
}
So, in template I have:
<div class="alert alert-fill-warning" *ngIf="invoices.length == 0"></div>
Problem is that while server returns data this messages is shown, because by default array is empty. How to show this message only when actually there are no data in response.