Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 tygodni temu
12345678910111213141516
  1. @page "/counter"
  2. <h1>Counter</h1>
  3. <p role="status">Current count: @currentCount</p>
  4. <button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
  5. @code {
  6. private int currentCount = 0;
  7. private void IncrementCount()
  8. {
  9. currentCount++;
  10. }
  11. }