mirror of
https://github.com/Megghy/MegghysAPI.git
synced 2025-12-06 14:16:56 +08:00
22 lines
461 B
Plaintext
22 lines
461 B
Plaintext
@page "/counter"
|
|
@rendermode InteractiveServer
|
|
|
|
<PageTitle>Counter</PageTitle>
|
|
|
|
<h1>Counter</h1>
|
|
|
|
<div role="status" style="padding-bottom: 1em;">
|
|
Current count: <FluentBadge Appearance="Appearance.Neutral">@currentCount</FluentBadge>
|
|
</div>
|
|
|
|
<FluentButton Appearance="Appearance.Accent" @onclick="IncrementCount">Click me</FluentButton>
|
|
|
|
@code {
|
|
private int currentCount = 0;
|
|
|
|
private void IncrementCount()
|
|
{
|
|
currentCount++;
|
|
}
|
|
}
|