может кто -нибудь показать мне, что, если что -то я делаю не так. При попытке заставить маршрутизацию работать с учебника, который я делаю. Я чувствую, что следил за всем словом, но я продолжаю получать ошибку < /p>
@page "/counter/{initialCount:int?}"
@rendermode InteractiveServer
Counter
Counter
Current count: @currentCount
Click me
InitialCount = @InitialCount
@code {
private int currentCount = 0;
[Parameter]
public int InitialCount { get; set; } = 0;
private void IncrementCount()
{
currentCount++;
}
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... r-tutorial