Update BasicTestApp

This commit is contained in:
Steve Sanderson 2018-03-06 17:32:28 -08:00
parent a9cccccce5
commit c50f089269
9 changed files with 12 additions and 12 deletions

View File

@ -5,7 +5,7 @@ Child components follow.
@foreach (var message in currentChildrenMessages) @foreach (var message in currentChildrenMessages)
{ {
<p><c:MessageComponent Message=@message /></p> <p><MessageComponent Message=@message /></p>
} }
@functions { @functions {

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Razor/2.1.0-preview2-30230;Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<!-- Local alternative to <RunArguments>blazor serve</RunArguments> --> <!-- Local alternative to <RunArguments>blazor serve</RunArguments> -->
<RunCommand>dotnet</RunCommand> <RunCommand>dotnet</RunCommand>
<RunArguments>run --project ..\..\..\src\Microsoft.AspNetCore.Blazor.Cli serve --pathbase /subdir</RunArguments> <RunArguments>run --project ../../../src/Microsoft.AspNetCore.Blazor.Cli serve --pathbase /subdir</RunArguments>
</PropertyGroup> </PropertyGroup>
<!-- Local alternative to <PackageReference Include="Microsoft.AspNetCore.Blazor.Build" /> --> <!-- Local alternative to <PackageReference Include="Microsoft.AspNetCore.Blazor.Build" /> -->

View File

@ -1,5 +1,5 @@
<h1>Counter</h1> <h1>Counter</h1>
<p>Current count: <c:MessageComponent Message="@currentCount.ToString()" /></p> <p>Current count: <MessageComponent Message=@currentCount.ToString() /></p>
<button @onclick(IncrementCount)>Click me</button> <button @onclick(IncrementCount)>Click me</button>
@functions { @functions {

View File

@ -2,6 +2,6 @@
This is the parent component. Here comes the counter: This is the parent component. Here comes the counter:
<c:CounterComponent /> <CounterComponent />
Finished. Finished.

View File

@ -1,4 +1,4 @@
<fieldset> <fieldset>
<legend>Parent component</legend> <legend>Parent component</legend>
<c:RedTextComponent /> <RedTextComponent />
</fieldset> </fieldset>

View File

@ -1,4 +1,4 @@
<c:PropertiesChangedHandlerChild SuppliedValue="@valueToSupply" /> <PropertiesChangedHandlerChild SuppliedValue=@valueToSupply />
<button onclick=@{ valueToSupply++; }>Increment</button> <button onclick=@{ valueToSupply++; }>Increment</button>
@functions { @functions {

View File

@ -1,3 +1,3 @@
@using BasicTestApp.RouterTest @using BasicTestApp.RouterTest
<div id="test-info">This is the default page.</div> <div id="test-info">This is the default page.</div>
<c:Links /> <Links />

View File

@ -1,3 +1,3 @@
@using BasicTestApp.RouterTest @using BasicTestApp.RouterTest
<div id="test-info">This is another page.</div> <div id="test-info">This is another page.</div>
<c:Links /> <Links />

View File

@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Blazor.Routing @using Microsoft.AspNetCore.Blazor.Routing
<c:Router AppAssembly=@(typeof(BasicTestApp.Program).Assembly) <Router AppAssembly=typeof(BasicTestApp.Program).Assembly
PagesNamespace=@nameof(BasicTestApp) PagesNamespace=@nameof(BasicTestApp)
DefaultComponentName=@("Default") /> DefaultComponentName="Default" />