Files
tmtsaqatravelmanager/Tmt.SaqaTravel/Components/Pages/Counter.razor
T
2026-07-09 08:52:32 +02:00

19 lines
449 B
Plaintext

@page "/counter"
@rendermode InteractiveServer
<PageTitle>Counter</PageTitle>
<h1 class="text-3xl font-bold mb-4">Counter</h1>
<p role="status" class="mb-4">Current count: @currentCount</p>
<button class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700 transition-colors" @onclick="IncrementCount">Click me</button>
@code {
private int currentCount = 0;
private void IncrementCount()
{
currentCount++;
}
}