Skip to main content

URL: Passing variables

It should be said that via the easy mix of code between the server and the GUI - this approach to pass variables might not the best way. 
But it could be used to implement an external facing URL, for example.

 

Add the path

@page "/reader/{Id:int}"

Bind the parameter

[Parameter]
public string Id { get; set; }