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

This commit is contained in:
Andre Fuhry 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++;
}
}

View File

@ -15,8 +15,8 @@
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="counter">
<span class="oi oi-plus" aria-hidden="true"></span> Counter
<NavLink class="nav-link" href="allergene">
<span class="oi oi-plus" aria-hidden="true"></span> Allergene
</NavLink>
</div>
<div class="nav-item px-3">