Skip to content

Commit a903d6e

Browse files
author
Andrew Hall
committed
Test files
1 parent a1d442e commit a903d6e

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@page "/references"
2+
3+
<PageTitle>Counter</PageTitle>
4+
5+
<h1>Counter</h1>
6+
7+
<p role="status">Current count: @currentCount</p>
8+
9+
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
10+
11+
@code {
12+
13+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace RazorApp.Pages;
2+
3+
public partial class References
4+
{
5+
private int currentCount = 0;
6+
7+
private void IncrementCount()
8+
{
9+
currentCount++;
10+
}
11+
}

0 commit comments

Comments
 (0)