diff options
author | Arash zandi <Arashz44@gmail.com> | 2022-01-24 14:29:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 14:29:19 +0300 |
commit | 645b03f7d97699b93b5069e2cd964603ee5b909c (patch) | |
tree | a409321c1ed8ca731ee5e7bddaf2858e616ae19a | |
parent | a50a863d1567c73afd8a2913490e0ec48f99e559 (diff) |
Update fetch-data.component.html (#25)
-rw-r--r-- | src/content/Angular-CSharp/ClientApp/src/app/fetch-data/fetch-data.component.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/Angular-CSharp/ClientApp/src/app/fetch-data/fetch-data.component.html b/src/content/Angular-CSharp/ClientApp/src/app/fetch-data/fetch-data.component.html index 19b3835..44e4fa9 100644 --- a/src/content/Angular-CSharp/ClientApp/src/app/fetch-data/fetch-data.component.html +++ b/src/content/Angular-CSharp/ClientApp/src/app/fetch-data/fetch-data.component.html @@ -2,9 +2,9 @@ <p>This component demonstrates fetching data from the server.</p> -<p *ngIf="!forecasts"><em>Loading...</em></p> +<p *ngIf="!forecasts?.length"><em>Loading...</em></p> -<table class='table table-striped' aria-labelledby="tableLabel" *ngIf="forecasts"> +<table class='table table-striped' aria-labelledby="tableLabel" *ngIf="forecasts.length"> <thead> <tr> <th>Date</th> |