Use Razor component in HostedInAspNet.Client
This commit is contained in:
parent
af98672b17
commit
b834f3b35b
|
|
@ -0,0 +1 @@
|
||||||
|
<h1>Hello, world!</h1>
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using Microsoft.AspNetCore.Blazor.Browser;
|
|
||||||
using Microsoft.AspNetCore.Blazor.Browser.Rendering;
|
using Microsoft.AspNetCore.Blazor.Browser.Rendering;
|
||||||
using Microsoft.AspNetCore.Blazor.Components;
|
|
||||||
using Microsoft.AspNetCore.Blazor.RenderTree;
|
|
||||||
|
|
||||||
namespace HostedInAspNet.Client
|
namespace HostedInAspNet.Client
|
||||||
{
|
{
|
||||||
|
|
@ -12,20 +9,7 @@ namespace HostedInAspNet.Client
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
// Temporarily render this test component until there's a proper mechanism
|
new BrowserRenderer().AddComponent<Home>("app");
|
||||||
// for testing this.
|
|
||||||
new BrowserRenderer().AddComponent<MyComponent>("app");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
internal class MyComponent : IComponent
|
|
||||||
{
|
|
||||||
public void Init(RenderHandle renderHandle)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetParameters(ParameterCollection parameters)
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue