mirror of
https://github.com/oqtane/oqtane.framework.git
synced 2025-05-20 11:34:22 +00:00
17 lines
295 B
Plaintext
17 lines
295 B
Plaintext
@namespace Oqtane.Modules.Counter
|
|
@inherits ModuleBase
|
|
Current count: @currentCount
|
|
<br />
|
|
<button type="button" class="btn btn-primary" @onclick="IncrementCount">Click me</button>
|
|
<br />
|
|
<br />
|
|
|
|
@code {
|
|
int currentCount = 0;
|
|
|
|
void IncrementCount()
|
|
{
|
|
currentCount++;
|
|
}
|
|
}
|