-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a weather API call to the Blazor Web App template when global interactivity is enabled with WebAssembly/Auto #51204
Comments
Thanks for contacting us. We're moving this issue to the |
Thanks for contacting us. We're moving this issue to the |
Could at least describe how to add API to Blazor template in .NET 8???? |
@aleksanderwercis You can find docs on calling web APIs from Blazor here: https://learn.microsoft.com/aspnet/core/blazor/call-web-api. If that doesn't answer all your questions, please let us know! |
Closing as a dupe of #55307 |
The earlier Blazor WebAssembly template demonstrated in the weather page how to make an API call from the client to the server. The new Blazor Web App template no longer demonstrates this scenario - instead the weather page manufactures the weather forecast data in the weather component implementation. It would be instructive if the weather page instead made an API call to the server to get the weather forecast data. This would also provide an opportunity to show how to handle component state persistence when prerendering.
The text was updated successfully, but these errors were encountered: