Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Counter.cshtml « Pages « HelloWorld « wasm - github.com/mono/illinker-test-assets.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d04028f9b1f8cab4e0e451001a3f71701886d126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@page "/counter"

<h1>Counter</h1>

<p>Current count: @currentCount</p>

<button class="btn btn-primary" onclick="@IncrementCount">Click me</button>

@functions {
    int currentCount = 0;

    void IncrementCount()
    {
        currentCount++;
    }
}