Skip to content

Commit c501b48

Browse files
committed
feat: add fallback route
1 parent 7ceeb2f commit c501b48

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

angular-hub/src/app/components/navigation/navigation.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
-->
129129
</header>
130130

131-
<main class="pb-4 flex-1">
131+
<main class="pb-4 h-full">
132132
<router-outlet></router-outlet>
133133
</main>
134134
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { Component } from '@angular/core';
2+
import { RouterLink } from '@angular/router';
3+
4+
@Component({
5+
standalone: true,
6+
imports: [RouterLink],
7+
template: `
8+
<h2 class="title text-7xl mb-6 text-center">Page Not Found</h2>
9+
10+
<a class="underline" routerLink="/">Go Back Home</a>
11+
`,
12+
styles: [
13+
`
14+
:host {
15+
display: flex;
16+
flex-direction: column;
17+
justify-content: center;
18+
align-items: center;
19+
height: 100%;
20+
}
21+
`,
22+
],
23+
})
24+
export default class PageNotFoundComponent {}

0 commit comments

Comments
 (0)