ModalDialog - usage in Program.cs and MainLayout.razor

This commit is contained in:
markosteger 2023-02-27 12:18:05 +01:00
parent ff3a36eb64
commit a1e5043db8
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -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();
}
}