79600916

Date: 2025-04-30 18:36:02
Score: 1
Natty:
Report link

For such a simply action why not simply use:

@inject NavigationManager Nav

<span class="fa fa-fighter-jet" @onclick=@(()=> Nav.NavigateTo("carMoved", 1))></span>

So use the injected NavigationManger object method directly instead of cluttering you code with doing the exact same thing.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lester