Skip to content

Commit 2575939

Browse files
Ryan NowakSteveSandersonMS
Ryan Nowak
authored andcommitted
Use real component syntax for NavLink/NavMenu
1 parent cb245cf commit 2575939

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

samples/StandaloneApp/Shared/MainLayout.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class='container-fluid'>
44
<div class='row'>
55
<div class='col-sm-3'>
6-
<c:NavMenu />
6+
<NavMenu />
77
</div>
88
<div class='col-sm-9'>
99
@Body

samples/StandaloneApp/Shared/NavMenu.cshtml

+6-7
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,19 @@
1313
<div class='navbar-collapse collapse'>
1414
<ul class='nav navbar-nav'>
1515
<li>
16-
<!-- The 'c:' prefix and parens are workarounds for a Razor compilation issue and will be removed soon. -->
17-
<c:NavLink href=@("/")>
16+
<NavLink href="/">
1817
<span class='glyphicon glyphicon-home'></span> Home
19-
</c:NavLink>
18+
</NavLink>
2019
</li>
2120
<li>
22-
<c:NavLink href=@("/counter")>
21+
<NavLink href="/counter">
2322
<span class='glyphicon glyphicon-education'></span> Counter
24-
</c:NavLink>
23+
</NavLink>
2524
</li>
2625
<li>
27-
<c:NavLink href=@("/fetchdata")>
26+
<NavLink href="/fetchdata">
2827
<span class='glyphicon glyphicon-th-list'></span> Fetch data
29-
</c:NavLink>
28+
</NavLink>
3029
</li>
3130
</ul>
3231
</div>

0 commit comments

Comments
 (0)