Replace "About" with "Counter". Move navigation links into NavMenu. Doesn't highlight active page yet though.
This commit is contained in:
parent
7370d748c6
commit
fd5875c5e7
|
|
@ -1,5 +0,0 @@
|
||||||
<h1>About</h1>
|
|
||||||
|
|
||||||
Some content goes here.
|
|
||||||
|
|
||||||
<a href="/">Home</a>
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
<h1>Counter</h1>
|
||||||
|
|
||||||
|
<p>Current count: @currentCount</p>
|
||||||
|
|
||||||
|
<button @onclick(IncrementCount)>Click me</button>
|
||||||
|
|
||||||
|
@functions {
|
||||||
|
int currentCount = 0;
|
||||||
|
|
||||||
|
void IncrementCount()
|
||||||
|
{
|
||||||
|
currentCount++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
<h1>Hello, world!</h1>
|
<h1>Hello, world!</h1>
|
||||||
|
|
||||||
Welcome to your new app.
|
Welcome to your new app.
|
||||||
|
|
||||||
<a href="/about">About</a>
|
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,15 @@
|
||||||
<div class='navbar-collapse collapse'>
|
<div class='navbar-collapse collapse'>
|
||||||
<ul class='nav navbar-nav'>
|
<ul class='nav navbar-nav'>
|
||||||
<li>
|
<li>
|
||||||
<a class='active' href='#'>
|
<a href='/'>
|
||||||
<span class='glyphicon glyphicon-home'></span> Home
|
<span class='glyphicon glyphicon-home'></span> Home
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='/counter'>
|
||||||
|
<span class='glyphicon glyphicon-education'></span> Counter
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue