Files
Moonlight/Moonlight/Shared/Components/Router/Route.razor
2023-06-16 16:58:58 +02:00

21 lines
303 B
Plaintext

@{
var route = "/" + (Router.Route ?? "");
}
@if (route == Path)
{
@ChildContent
}
@code
{
[CascadingParameter]
public SmartRouter Router { get; set; }
[Parameter]
public RenderFragment ChildContent { get; set; }
[Parameter]
public string Path { get; set; }
}