You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
521 B
22 lines
521 B
using Microsoft.AspNetCore.Components;
|
|
using TutoBlazer.Models;
|
|
|
|
namespace TutoBlazer.Pages
|
|
{
|
|
public partial class List
|
|
{
|
|
private Item[] items;
|
|
|
|
[Inject]
|
|
public HttpClient Http { get; set; }
|
|
|
|
[Inject]
|
|
public NavigationManager NavigationManager { get; set; }
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
items = await Http.GetFromJsonAsync<Item[]>($"{NavigationManager.BaseUri}fake-data.json");
|
|
}
|
|
}
|
|
}
|