Skip to content

Commit d1c892e

Browse files
committed
Simplify Router
1 parent 475efe7 commit d1c892e

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

projects/.net8/RazorComponentEight/RazorComponentEight/App.razor

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,12 @@
99
<HeadOutlet />
1010
</head>
1111
<body>
12-
1312
<Router AppAssembly="@typeof(App).Assembly">
1413
<Found Context="routeData">
1514
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
1615
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
1716
</Found>
18-
<NotFound>
19-
<PageTitle>Not found</PageTitle>
20-
<LayoutView Layout="@typeof(MainLayout)">
21-
<p role="alert">Sorry, there's nothing at this address.</p>
22-
</LayoutView>
23-
</NotFound>
2417
</Router>
25-
2618
<script src="_framework/blazor.web.js" suppress-error="BL9992"></script>
2719
</body>
2820
</html>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.002.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorComponentEight", "RazorComponentEight.csproj", "{8002ACBE-D379-4A05-832F-71D611C47D1B}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{8002ACBE-D379-4A05-832F-71D611C47D1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{8002ACBE-D379-4A05-832F-71D611C47D1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{8002ACBE-D379-4A05-832F-71D611C47D1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{8002ACBE-D379-4A05-832F-71D611C47D1B}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {D7C03BAA-0B56-45C0-8F59-104257AD3A57}
24+
EndGlobalSection
25+
EndGlobal

0 commit comments

Comments
 (0)