Skip to content

Commit 77a5b97

Browse files
authored
Blazor Preview 4 tutorial update (#18020)
1 parent 942960a commit 77a5b97

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

aspnetcore/tutorials/build-your-first-blazor-app/samples_snapshot/3.x/FetchData1_client.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
protected override async Task OnInitializedAsync()
66
{
77
forecasts =
8-
await Http.GetJsonAsync<WeatherForecast[]>("sample-data/weather.json");
8+
await Http.GetFromJsonAsync<WeatherForecast[]>(
9+
"sample-data/weather.json");
910
}

0 commit comments

Comments
 (0)