about summary refs log tree commit diff
path: root/MatrixUtils.Web/App.razor
blob: 5e87bc3cf8677b6aa1bc0cbafc5ec142d1482e8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
@using Microsoft.AspNetCore.Components.Routing
<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>