Baptiste BAVEREL 3 years ago
parent 22ecdd32e1
commit 28afaa6d81

@ -1,13 +1,8 @@
@page "/RouteParameter/{text?}" @page "/RouteParameter/{text}"
<h1>Blazor is @Text!</h1> <h1>Blazor is @Text!</h1>
@code { @code {
[Parameter] [Parameter]
public string? Text { get; set; } public string? Text { get; set; }
protected override void OnInitialized()
{
Text = Text ?? "fantastic";
}
} }
Loading…
Cancel
Save