diff options
Diffstat (limited to 'wasm/Newtonsoft/Pages/Counter.cshtml')
-rw-r--r-- | wasm/Newtonsoft/Pages/Counter.cshtml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/wasm/Newtonsoft/Pages/Counter.cshtml b/wasm/Newtonsoft/Pages/Counter.cshtml new file mode 100644 index 0000000..d04028f --- /dev/null +++ b/wasm/Newtonsoft/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++;
+ }
+}
|