Search⌘ K

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 need to fetch the list of tasks and display them to the user. We do this as follows:

  1. Return to Visual Studio.
  2. Right-click the TaskManager.Client.Pages folder and select the “Add, Class” option from the menu.
  3. Name the new class Index.razor.cs.
  4. Click the “Add” button.
  5. Add the
...