@page "/fetchdata"
@using LiveChat.Data
@inject WeatherForecastService ForecastService
This component demonstrates fetching data from a service.
@if (forecasts == null) {Loading...
} else {Date | Temp. (C) | Temp. (F) | Summary |
---|---|---|---|
@forecast.Date.ToShortDateString() | @forecast.TemperatureC | @forecast.TemperatureF | @forecast.Summary |