Skip to content

Instantly share code, notes, and snippets.

@Mirch Mirch/Feed.cshtml
Last active Jan 12, 2019

What would you like to do?
@inject HttpClient Http
@functions {
IEnumerable<FeedElement> posts;
private async Task<IEnumerable<FeedElement>> GetData()
var data = await Http.GetJsonAsync<IEnumerable<FeedElement>>("sample-data/feed.json");
return data;
public class FeedElement
public string Title { get; set; }
public string Content { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.