@page "/"
@myMarkup
@code {
string myMarkup = "<p class='markup'>This is a <em>markup string</em>.</p> <button class='btn btn-primary'>Button</button>";
}
namespace BlazorFiddleProject
{
using Microsoft.AspNetCore.Components.Builder;
using Microsoft.Extensions.DependencyInjection;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
}
public void Configure(IComponentsApplicationBuilder app)
{
app.AddComponent<App>("app");
}
}
}