From the course: Blazor WebAssembly: Foundational Skills
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Challenge - Blazor Tutorial
From the course: Blazor WebAssembly: Foundational Skills
Challenge
- [Instructor] It's time for you to put your Blazor web assembly knowledge into action. There is an online shop built using Blazor web assembly but it's not showing any products. It will be your job to load them in. It is used in the asp.net core hosted template where it creates two projects. The MyBlazorShopHosted.Web.Client is the client side Blazor web assembly app. And the MyBlazorShopHosted.Web.Server project is the server side asp.net call web app. Both of these are hosted on localhost:9002, where the asp.net call web app loads in the Blazor web assembly files. Inside the MyBlazorShop.Hosted.Web.Server project, there is a product controller which has a get all action. This API endpoint is responsible for getting all the products. There are some optional parameters that can be passed in. The size parameter indicates the number of products displayed and the page parameter indicates the page number. An instance of…