Displaying the Tasks
Explore how to retrieve and display tasks in a Blazor WebAssembly task manager app by creating a partial class and updating Razor markup. Understand how to use GetFromJsonAsync to load tasks and present them with checkboxes, task names, and delete buttons.
We'll cover the following...
We'll cover the following...
We need to fetch the list of tasks and display them to the user. We do this as follows:
- Return to Visual Studio.
- Right-click the
TaskManager.Client.Pagesfolder and select the “Add, Class” option from the menu. - Name the new class
Index.razor.cs. - Click the “Add” button.
- Add the