features/rewrite/modal1 #10
@ -1,5 +1,7 @@
 | 
				
			|||||||
@inherits LayoutComponentBase
 | 
					@inherits LayoutComponentBase
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<ModalDialog/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<main>
 | 
					<main>
 | 
				
			||||||
    @Body
 | 
					    @Body
 | 
				
			||||||
</main>
 | 
					</main>
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,7 @@
 | 
				
			|||||||
using Connected.Components.Showcase.Runner;
 | 
					using Connected.Components.Showcase.Runner;
 | 
				
			||||||
using Microsoft.AspNetCore.Components.Web;
 | 
					using Microsoft.AspNetCore.Components.Web;
 | 
				
			||||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
 | 
					using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
 | 
				
			||||||
 | 
					using Connected.Services;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
internal class Program
 | 
					internal class Program
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -12,6 +13,8 @@ internal class Program
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
 | 
							builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							builder.Services.AddModalDialogService();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		await builder.Build().RunAsync();
 | 
							await builder.Build().RunAsync();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user