YUM04: Changed counter page to Allergene && Navbar link now points to new page

This commit is contained in:
2023-01-31 16:55:02 +01:00
parent 233f41a1fc
commit 6a9404cb5f
2 changed files with 2 additions and 20 deletions

View File

@ -1,18 +0,0 @@
@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++;
}
}