ModalDialog - usage in Program.cs and MainLayout.razor

pull/10/head
markosteger 2 years ago
parent ff3a36eb64
commit a1e5043db8

@ -1,5 +1,7 @@
@inherits LayoutComponentBase
<ModalDialog/>
<main>
@Body
</main>

@ -1,6 +1,7 @@
using Connected.Components.Showcase.Runner;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Connected.Services;
internal class Program
{
@ -12,6 +13,8 @@ internal class Program
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddModalDialogService();
await builder.Build().RunAsync();
}
}
Loading…
Cancel
Save