Permalink
Browse files

alternative route template to counter and added link to it on the nav…

…igation menu
  • Loading branch information...
lusocoding committed Jan 22, 2019
1 parent 57e5133 commit 7236649ff486e98c99fdc17ddce1dee1045d69f8
Showing with 11 additions and 5 deletions.
  1. +6 −5 WasmWithBlazorApp/Pages/Counter.cshtml
  2. +5 −0 WasmWithBlazorApp/Shared/NavMenu.cshtml
@@ -1,4 +1,5 @@
@page "/counter"
@page "/anothercounter"

<h1>Counter</h1>

@@ -7,10 +8,10 @@
<button class="btn btn-primary" onclick="@IncrementCount">Click me</button>

@functions {
int currentCount = 0;
int currentCount = 0;

void IncrementCount()
{
currentCount++;
}
void IncrementCount()
{
currentCount++;
}
}
@@ -17,6 +17,11 @@
<span class="oi oi-plus" aria-hidden="true"></span> Counter
</NavLink>
</li>
<li class="nav-item px-3">
<NavLink class="nav-link" href="anothercounter">
<span class="oi oi-plus" aria-hidden="true"></span> Another Counter
</NavLink>
</li>
<li class="nav-item px-3">
<NavLink class="nav-link" href="fetchdata">
<span class="oi oi-list-rich" aria-hidden="true"></span> Fetch data

0 comments on commit 7236649

Please sign in to comment.