@page "/counter/{Id:int}" @inherits ComponentBase @implements IReuseTabsPage
Current count: @currentCount
GoTo($"/counter/{Id+1}"))">Go to @($"Counter {Id+1}")
@code { [Parameter] public int Id { get; set; } [Inject] private NavigationManager Navigation { get; set; } private int currentCount = 0; public RenderFragment GetPageTitle() => @@($"Counter {Id}") ; private void IncrementCount() { currentCount++; } private void GoTo(string url) { Navigation.NavigateTo(url); } }