Merge pull request #2868 from sbwalker/dev
Head root component integration in .NET MAUI
This commit is contained in:
commit
e4912fcb09
6
Oqtane.Maui/Head.razor
Normal file
6
Oqtane.Maui/Head.razor
Normal file
|
@ -0,0 +1,6 @@
|
|||
<DynamicComponent Type="@ComponentType"></DynamicComponent>
|
||||
|
||||
@code {
|
||||
Type ComponentType = Type.GetType("Oqtane.Head, Oqtane.Client");
|
||||
}
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
<BlazorWebView HostPage="wwwroot/index.html">
|
||||
<BlazorWebView.RootComponents>
|
||||
<RootComponent Selector="head::after" ComponentType="{x:Type local:Head}" />
|
||||
<RootComponent Selector="#app" ComponentType="{x:Type local:Main}" />
|
||||
</BlazorWebView.RootComponents>
|
||||
</BlazorWebView>
|
||||
|
|
Loading…
Reference in New Issue
Block a user