Sorry, there's nothing at this address.
9 |Current count: @currentCount
6 | 7 | 8 | 9 | @code { 10 | private int currentCount = 0; 11 | 12 | private void IncrementCount() 13 | { 14 | currentCount++; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Pages/FetchData.razor: -------------------------------------------------------------------------------- 1 | @page "/fetchdata" 2 | 3 | @using SQLiteDemoWithBlazorApp.Data 4 | @using SQLiteDemoWithBlazorApp.Models 5 | @using SQLiteDemoWithBlazorApp.Services 6 | @inject IStudentService StudentService 7 | @inject NavigationManager NavManager 8 |This component demonstrates fetching data from a service.
11 | 12 | @if (students == null) 13 | { 14 |Loading...
15 | } 16 | else 17 | { 18 |First Name | 23 |Last Name | 24 |Gender | 25 ||||
---|---|---|---|---|---|
@student.FirstName | 33 |@student.LastName | 34 |@student.Gender | 35 |@student.Email | 36 |37 | 38 | | 39 |40 | 41 | | 42 |