Skip to content

Commit 9005396

Browse files
committed
perf: ⚡ adding page 404
1 parent 6f9abaf commit 9005396

File tree

5 files changed

+42
-1
lines changed

5 files changed

+42
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
import { Routes } from '@angular/router';
2+
import { PageNotFoundComponent } from './shared/components/page-not-found/page-not-found.component';
23

3-
export const routes: Routes = [];
4+
export const routes: Routes = [
5+
{
6+
path: '**',
7+
component: PageNotFoundComponent,
8+
},
9+
];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>page-not-found works!</p>

angular-simple-counter/src/app/shared/components/page-not-found/page-not-found.component.scss

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { PageNotFoundComponent } from './page-not-found.component';
4+
5+
describe('PageNotFoundComponent', () => {
6+
let component: PageNotFoundComponent;
7+
let fixture: ComponentFixture<PageNotFoundComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
imports: [PageNotFoundComponent]
12+
})
13+
.compileComponents();
14+
15+
fixture = TestBed.createComponent(PageNotFoundComponent);
16+
component = fixture.componentInstance;
17+
fixture.detectChanges();
18+
});
19+
20+
it('should create', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-page-not-found',
5+
imports: [],
6+
templateUrl: './page-not-found.component.html',
7+
styleUrl: './page-not-found.component.scss'
8+
})
9+
export class PageNotFoundComponent {
10+
11+
}

0 commit comments

Comments
 (0)