@page "/fetchdata" @using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Components.WebAssembly.Authentication @using AntDesign.TestApp.Client.Data @attribute [Authorize] @inject HttpClient Http @attribute [ReuseTabsPage(Title = "Fetchdata")]
This component demonstrates fetching data from the server.
@if (forecasts == null) {Loading...
} else {Date | Temp. (C) | Temp. (F) | Summary |
---|---|---|---|
@forecast.Date.ToShortDateString() | @forecast.TemperatureC | @forecast.TemperatureF | @forecast.Summary |