File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 7
7
</PropertyGroup >
8
8
9
9
<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" />
12
13
</ItemGroup >
13
14
14
15
</Project >
Original file line number Diff line number Diff line change 1
1
using BlazorComponents ;
2
+ using BlazorComponents . Components ;
2
3
using Microsoft . AspNetCore . Components . Web ;
3
4
using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
4
5
8
9
9
10
builder . Services . AddScoped ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
10
11
12
+ // Register our components as a custom elements
13
+ builder . RootComponents . RegisterCustomElement < Counter > ( "blazor-counter" ) ;
14
+ builder . RootComponents . RegisterCustomElement < HeroEditor > ( "blazor-heroeditor" ) ;
15
+
11
16
await builder . Build ( ) . RunAsync ( ) ;
You can’t perform that action at this time.
0 commit comments