Sorry, there's nothing at this address.
13 |Current count: @currentCount
6 | 7 | 8 | 9 | @code { 10 | private int currentCount = 0; 11 | 12 | private void IncrementCount() 13 | { 14 | currentCount += 2; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /BlazorBattles/Client/Pages/FetchData.razor: -------------------------------------------------------------------------------- 1 | @page "/fetchdata" 2 | @using BlazorBattles.Shared 3 | @inject HttpClient Http 4 | 5 |This component demonstrates fetching data from the server.
8 | 9 | @if (forecasts == null) 10 | { 11 |Loading...
12 | } 13 | else 14 | { 15 |Date | 19 |Temp. (C) | 20 |Temp. (F) | 21 |Summary | 22 |
---|---|---|---|
@forecast.Date.ToShortDateString() | 29 |@forecast.TemperatureC | 30 |@forecast.TemperatureF | 31 |@forecast.Summary | 32 |
Date | 10 |Attacker | 11 |Opponent | 12 |Rounds | 13 |Damage | 14 |15 | |
---|---|---|---|---|---|
@battle.BattleDate | 22 |@battle.AttackerName | 23 |@battle.OpponentName | 24 |@battle.RoundsFought | 25 |@battle.WinnerDamageDealt | 26 |@(battle.YouWon ? "You won!" : "You lost!") | 27 |
# | 21 |User | 22 |Victories | 23 |Defeats | 24 |Battles | 25 |26 | |
---|---|---|---|---|---|
@entry.Rank | 33 |@entry.Username | 34 |@entry.Victories | 35 |@entry.Defeats | 36 |@entry.Battles | 37 |38 | @if (entry.UserId != myUserId) 39 | { 40 | 41 | } 42 | | 43 |