Route parameters
You can pass parameters to your components via the URL, by using Route Parameters.
Include them in the Route Template for your component via the @page
directive.
Access the value via a Parameter
(of the same name).
@page "/GreetMe/{name}"
<h1>Hello @Name</h1>
@code {
[Parameter] public string Name { get; set; }
}