Files
work/AspireApp1/AspireApp1.Web/Components/Pages/Counter.razor
T
astankovmi bf51924adb
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 13s
add projects
2026-03-18 15:37:59 +03:00

20 lines
344 B
Plaintext

@page "/counter"
@rendermode InteractiveServer
<PageTitle>Counter</PageTitle>
<h1>Counter</h1>
<p role="status">Current count: @currentCount</p>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
@code {
private int currentCount = 0;
private void IncrementCount()
{
currentCount++;
}
}