mirror of
https://github.com/yummy4friends/y4f.git
synced 2024-11-14 06:52:46 +01:00
18 lines
313 B
Plaintext
18 lines
313 B
Plaintext
|
@page "/counter"
|
||
|
|
||
|
<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++;
|
||
|
}
|
||
|
}
|