@page "/articles/newest"
@using Newsbot.Collector.Client
@using Newsbot.Collector.Client.Domain.Dto
List Articles
@foreach (var item in Data ??= new List
())
{
@item.Title
@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;
}
}