Skip to content

Instantly share code, notes, and snippets.

@tarrzan33
Created February 21, 2020 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarrzan33/e9541b8d4535b19d65c0c0751eccbe10 to your computer and use it in GitHub Desktop.
Save tarrzan33/e9541b8d4535b19d65c0c0751eccbe10 to your computer and use it in GitHub Desktop.
@page "/"
@inject NavigationManager nav
<h1>Hello, world!</h1>
Welcome to your new app.
@code{
protected override void OnInitialized()
{
nav.LocationChanged += Foo;
}
private void Foo()
{
Console.WriteLine("Foo");
}
}
@tarrzan33
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment