diff --git a/DotNet/ASP.NET/Blazor.md b/DotNet/ASP.NET/Blazor.md index f228c8a..4edf2d7 100644 --- a/DotNet/ASP.NET/Blazor.md +++ b/DotNet/ASP.NET/Blazor.md @@ -225,7 +225,9 @@ Project [Blazor Components](https://docs.microsoft.com/en-us/aspnet/core/blazor/components/) ```cs -@page "/route/{RouteParameter?}" // make component accessible from a URL (optional) +@page "/route/{RouteParameter}" // make component accessible from a URL +@page "/route/{RouteParameter?}" // specify route parameter as optional +@page "/route/{RouteParameter:}" // specify route parameter type @namespace // set the component namespace @using // using statement