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)
{
<p><c:MessageComponent Message=@message /></p>
<p><MessageComponent Message=@message /></p>
}
@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>
<TargetFramework>netstandard2.0</TargetFramework>
<!-- Local alternative to <RunArguments>blazor serve</RunArguments> -->
<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>
<!-- Local alternative to <PackageReference Include="Microsoft.AspNetCore.Blazor.Build" /> -->

View File

@ -1,5 +1,5 @@
<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>
@functions {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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