File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 77 </PropertyGroup >
88
99 <ItemGroup >
10- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 7.0.10" />
11- <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 7.0.10" PrivateAssets =" all" />
10+ <PackageReference Include =" Microsoft.AspNetCore.Components.CustomElements" Version =" 7.0.13" />
11+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 7.0.13" />
12+ <PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 7.0.13" PrivateAssets =" all" />
1213 </ItemGroup >
1314
1415</Project >
Original file line number Diff line number Diff line change 11using BlazorComponents ;
2+ using BlazorComponents . Components ;
23using Microsoft . AspNetCore . Components . Web ;
34using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
45
89
910builder . Services . AddScoped ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
1011
12+ // Register our components as a custom elements
13+ builder . RootComponents . RegisterCustomElement < Counter > ( "blazor-counter" ) ;
14+ builder . RootComponents . RegisterCustomElement < HeroEditor > ( "blazor-heroeditor" ) ;
15+
1116await builder . Build ( ) . RunAsync ( ) ;
You can’t perform that action at this time.
0 commit comments