Created
February 21, 2020 19:25
-
-
Save tarrzan33/e9541b8d4535b19d65c0c0751eccbe10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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"); | |
} | |
} |
Author
tarrzan33
commented
Feb 21, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment