Update BasicTestApp
This commit is contained in:
parent
a9cccccce5
commit
c50f089269
|
|
@ -5,7 +5,7 @@ Child components follow.
|
|||
|
||||
@foreach (var message in currentChildrenMessages)
|
||||
{
|
||||
<p><c:MessageComponent Message=@message /></p>
|
||||
<p><MessageComponent Message=@message /></p>
|
||||
}
|
||||
|
||||
@functions {
|
||||
|
|
|
|||
|
|
@ -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" /> -->
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
This is the parent component. Here comes the counter:
|
||||
|
||||
<c:CounterComponent />
|
||||
<CounterComponent />
|
||||
|
||||
Finished.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<fieldset>
|
||||
<legend>Parent component</legend>
|
||||
<c:RedTextComponent />
|
||||
<RedTextComponent />
|
||||
</fieldset>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<c:PropertiesChangedHandlerChild SuppliedValue="@valueToSupply" />
|
||||
<PropertiesChangedHandlerChild SuppliedValue=@valueToSupply />
|
||||
<button onclick=@{ valueToSupply++; }>Increment</button>
|
||||
|
||||
@functions {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
@using BasicTestApp.RouterTest
|
||||
<div id="test-info">This is the default page.</div>
|
||||
<c:Links />
|
||||
<Links />
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
@using BasicTestApp.RouterTest
|
||||
<div id="test-info">This is another page.</div>
|
||||
<c:Links />
|
||||
<Links />
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue