@page "/agents" @attribute [StreamRendering(true)] @attribute [OutputCache(Duration = 5)] @inject AgentAPIClient AgentApi Agents

Agents

This component demonstrates showing data loaded from a backend API service.

@if (results == null) {

Loading...

} else { @foreach (var result in results) { }
Date Temp. (F) Summary
@result.Date.ToShortDateString() @result.Summary @result.Content
} @code { private AgentOutputRecord[]? results; protected override async Task OnInitializedAsync() { results = await AgentApi.GetAgentResultAsync(); } }