Created
December 16, 2022 08:24
-
-
Save huanlin/7884c05023ff6e3aa418430dd9e7a671 to your computer and use it in GitHub Desktop.
Blazor App.razor
This file contains hidden or 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
<Router AppAssembly="@typeof(App).Assembly"> | |
<Found Context="routeData"> | |
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" /> | |
<FocusOnNavigate RouteData="@routeData" Selector="h1" /> | |
</Found> | |
<NotFound> | |
<PageTitle>Not found</PageTitle> | |
<LayoutView Layout="@typeof(MainLayout)"> | |
<p role="alert">Sorry, there's nothing at this address.</p> | |
</LayoutView> | |
</NotFound> | |
</Router> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment