Blazor WASM Template

This commit is contained in:
Stone_Red
2024-11-05 16:14:06 +01:00
parent 0a4cfaa87e
commit 87891abafa
21 changed files with 586 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
@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++;
}
}