https://codefirst.iut.uca.fr/documentation/julien.riboulet/docusaurus/Blazor/edit-item/create-edit-page#route-settings
parent
22ecdd32e1
commit
28afaa6d81
Binary file not shown.
Binary file not shown.
@ -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…
Reference in new issue