Sorry, there's nothing at this address.
10 |Current count: @currentCount
8 | 9 | 10 | 11 | @code { 12 | private int currentCount = 0; 13 | 14 | private void IncrementCount() 15 | { 16 | currentCount++; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/NetClient.Elastic/Pages/FetchData.razor: -------------------------------------------------------------------------------- 1 | @page "/fetchdata" 2 | @inject HttpClient Http 3 | 4 |This component demonstrates fetching data from the server.
9 | 10 | @if (forecasts == null) 11 | { 12 |Loading...
13 | } 14 | else 15 | { 16 |Date | 20 |Temp. (C) | 21 |Temp. (F) | 22 |Summary | 23 |
---|---|---|---|
@forecast.Date.ToShortDateString() | 30 |@forecast.TemperatureC | 31 |@forecast.TemperatureF | 32 |@forecast.Summary | 33 |
Id | 15 |Name | 16 |Location | 18 |Action | 19 ||
---|---|---|---|---|
@item.Id | 26 |@item.FullName | 27 |@item.Email | 28 |@(item.City+", "+item.Country) | 29 |30 | 31 | 32 | 33 | | 34 |