From a1e5043db841760774e757d4a1c531a4b6113d39 Mon Sep 17 00:00:00 2001 From: markosteger Date: Mon, 27 Feb 2023 12:18:05 +0100 Subject: [PATCH] ModalDialog - usage in Program.cs and MainLayout.razor --- src/Connected.Components.Showcase.Runner/MainLayout.razor | 2 ++ src/Connected.Components.Showcase.Runner/Program.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/Connected.Components.Showcase.Runner/MainLayout.razor b/src/Connected.Components.Showcase.Runner/MainLayout.razor index de2be6c..8dd7695 100644 --- a/src/Connected.Components.Showcase.Runner/MainLayout.razor +++ b/src/Connected.Components.Showcase.Runner/MainLayout.razor @@ -1,5 +1,7 @@ @inherits LayoutComponentBase + +
@Body
diff --git a/src/Connected.Components.Showcase.Runner/Program.cs b/src/Connected.Components.Showcase.Runner/Program.cs index 568153e..370ca59 100644 --- a/src/Connected.Components.Showcase.Runner/Program.cs +++ b/src/Connected.Components.Showcase.Runner/Program.cs @@ -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(); } } \ No newline at end of file