I have a question for Blazor Server Side.
I want to @page route url define with variable or property.
I can use now with below default method
@page "/route-url"
<h1>Page Test</h1>
@code {
}
But i want use like as below method
@page MenuItem.Role
<h1>Page Test</h1>
@code {
}
I'm tried above method then throwed exception. Like as below exception.
C:\Projects\TestBlazorProject\Pages\TestPage.razor(1,7): error RZ1016: The 'page' directive expects a string surrounded by double quotes. [C:\Projects\TestBlazorProject\TestBlazorProject.csproj]
How to define @page route url with any different variable or any class property?