Update templates to use new @page routing feature
This commit is contained in:
parent
139601894a
commit
58cc946a88
|
|
@ -1,6 +1,5 @@
|
|||
<!--
|
||||
Configuring this stuff here is temporary. Later we'll move the app config
|
||||
Configuring this here is temporary. Later we'll move the app config
|
||||
into Program.cs, and it won't be necessary to specify AppAssembly.
|
||||
-->
|
||||
<Router AppAssembly=typeof(Program).Assembly
|
||||
PagesNamespace="BlazorHosted.CSharp.Client.Pages" />
|
||||
<Router AppAssembly=typeof(Program).Assembly />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<h1>Counter</h1>
|
||||
@page "/counter"
|
||||
<h1>Counter</h1>
|
||||
|
||||
<p>Current count: @currentCount</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
@using BlazorHosted.CSharp.Shared
|
||||
@page "/fetchdata"
|
||||
@inject HttpClient Http
|
||||
|
||||
<h1>Weather forecast</h1>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<h1>Hello, world!</h1>
|
||||
@page "/"
|
||||
<h1>Hello, world!</h1>
|
||||
|
||||
Welcome to your new app.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
<!--
|
||||
Configuring this stuff here is temporary. Later we'll move the app config
|
||||
Configuring this here is temporary. Later we'll move the app config
|
||||
into Program.cs, and it won't be necessary to specify AppAssembly.
|
||||
-->
|
||||
<Router AppAssembly=typeof(Program).Assembly
|
||||
PagesNamespace="BlazorStandalone.CSharp.Pages" />
|
||||
<Router AppAssembly=typeof(Program).Assembly />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<h1>Counter</h1>
|
||||
@page "/counter"
|
||||
<h1>Counter</h1>
|
||||
|
||||
<p>Current count: @currentCount</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
@inject HttpClient Http
|
||||
@page "/fetchdata"
|
||||
@inject HttpClient Http
|
||||
|
||||
<h1>Weather forecast</h1>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<h1>Hello, world!</h1>
|
||||
@page "/"
|
||||
<h1>Hello, world!</h1>
|
||||
|
||||
Welcome to your new app.
|
||||
|
|
|
|||
Loading…
Reference in New Issue