@page "/articles/latest" @using Newsbot.Collector.Client @using Newsbot.Collector.Client.Domain.Dto Latest Posts

Latest Posts

@foreach (var item in Data ??= new List()) {
...
@item.Title

@item.PubDate

@item.Description

View
}
@code { List? Data { get; set; } protected override async Task OnInitializedAsync() { var c = new ArticlesClient(Global.HttpClient, Global.DefaultInstanceUri ?? ""); var items = await c.ListArticlesAsync(); Data = items; } }