Sorry, there's nothing at this address.
10 |Current count: @currentCount
8 | 9 | 10 | 11 | @code { 12 | private int currentCount = 0; 13 | 14 | private void IncrementCount() 15 | { 16 | currentCount++; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /CleanArchitecture.Blazor/Pages/FetchAlbumData.razor: -------------------------------------------------------------------------------- 1 | @page "/fetchalbumdata" 2 | @using CleanArchitecture.Blazor.Interfaces 3 | @using System.Net.Http.Json 4 | @using CleanArchitecture.Blazor.Models 5 | @inject IAlbumService albumService 6 | 7 |Component demonstrates fetching data using Clean Architecture approach.
12 | 13 | @if (albums == null) 14 | { 15 |Loading...
16 | } 17 | else 18 | { 19 |Album Id | 23 |Album Name | 24 |Artist ID | 25 |ReleaseDate | 26 | 27 |
---|---|---|---|
@album.AlbumId | 34 |@album.AlbumName | 35 |@album.ArtistId | 36 |@album.ReleaseDate.ToShortDateString() | 37 |
This component demonstrates fetching data from the server.
9 | 10 | @if (forecasts == null) 11 | { 12 |Loading...
13 | } 14 | else 15 | { 16 |Date | 20 |Temp. (C) | 21 |Temp. (F) | 22 |Summary | 23 |
---|---|---|---|
@forecast.Date.ToShortDateString() | 30 |@forecast.TemperatureC | 31 |@forecast.TemperatureF | 32 |@forecast.Summary | 33 |
This component demonstrates fetching data from the server.
9 | 10 | @if (forecasts == null) 11 | { 12 |Loading...
13 | } 14 | else 15 | { 16 |Date | 20 |Temp. (C) | 21 |Temp. (F) | 22 |Summary | 23 |
---|---|---|---|
@forecast.Date.ToShortDateString() | 30 |@forecast.TemperatureC | 31 |@forecast.TemperatureF | 32 |@forecast.Summary | 33 |
This component demonstrates fetching data from the server.
9 | 10 | @if (forecasts == null) 11 | { 12 |Loading...
13 | } 14 | else 15 | { 16 |Date | 20 |Temp. (C) | 21 |Temp. (F) | 22 |Summary | 23 |
---|---|---|---|
@forecast.Date.ToShortDateString() | 30 |@forecast.TemperatureC | 31 |@forecast.TemperatureF | 32 |@forecast.Summary | 33 |