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 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. into Program.cs, and it won't be necessary to specify AppAssembly.
--> -->
<c:Router AppAssembly=@(typeof(Program).Assembly) <Router AppAssembly=typeof(Program).Assembly
PagesNamespace=@("BlazorStandalone.CSharp.Pages") /> 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='container-fluid'>
<div class='row'> <div class='row'>

View File

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