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

github.com/mono/illinker-test-assets.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'wasm/HelloWorld/Pages/Counter.cshtml')
-rw-r--r--wasm/HelloWorld/Pages/Counter.cshtml16
1 files changed, 16 insertions, 0 deletions
diff --git a/wasm/HelloWorld/Pages/Counter.cshtml b/wasm/HelloWorld/Pages/Counter.cshtml
new file mode 100644
index 0000000..d04028f
--- /dev/null
+++ b/wasm/HelloWorld/Pages/Counter.cshtml
@@ -0,0 +1,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++;
+ }
+}