Create Blazor project with Interactive Auto render mode in .NET 8

Опубликовано: 29 Сентябрь 2024
на канале: Authorised Territory
1,070
22

Authorised Territory code examples - This #blazor .NET 8 #tutorial shows how to create a project with interactive auto mode.
First, we create a project and add models to support API call to api.open-meteo.com/v1/forecast
Next, we register http client and create controller in the server project.
We add required services in both server and client projects.
Finally, we modify client razor page to call the service and return weather data for London.