Update BlazorStandalone template content to new APIs

This commit is contained in:
Steve Sanderson 2018-03-06 18:06:03 -08:00
parent 2d2b1d335e
commit 9f34048633
4 changed files with 5 additions and 4 deletions

View File

@ -2,5 +2,5 @@
Configuring this stuff here is temporary. Later we'll move the app config
into Program.cs, and it won't be necessary to specify AppAssembly.
-->
<c:Router AppAssembly=@(typeof(Program).Assembly)
PagesNamespace=@("BlazorStandalone.CSharp.Pages") />
<Router AppAssembly=typeof(Program).Assembly
PagesNamespace="BlazorStandalone.CSharp.Pages" />

View File

@ -1 +1 @@
@(Layout<MainLayout>())
@layout MainLayout

View File

@ -1,4 +1,4 @@
@(Implements<ILayoutComponent>())
@implements ILayoutComponent
<div class='container-fluid'>
<div class='row'>

View File

@ -13,6 +13,7 @@
<div class='navbar-collapse collapse'>
<ul class='nav navbar-nav'>
<li>
<!-- The 'c:' prefix and parens are workarounds for a Razor compilation issue and will be removed soon. -->
<c:NavLink href=@("/")>
<span class='glyphicon glyphicon-home'></span> Home
</c:NavLink>