Skip to content
Snippets Groups Projects
Commit 558cf1b8 authored by Lorenz Detterbeck's avatar Lorenz Detterbeck
Browse files

renamed error landing page component to page not found: delete the old one, create the new one

parent 5167973b
No related merge requests found
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { ErrorLandingPageComponent } from './error-landing-page/error-landing-page.component'; import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
const routes: Routes = [ const routes: Routes = [
{ path: 'errorpage', component: ErrorLandingPageComponent } { path: 'errorpage', component: PageNotFoundComponent }
]; ];
......
...@@ -4,14 +4,14 @@ import { NgModule } from '@angular/core'; ...@@ -4,14 +4,14 @@ import { NgModule } from '@angular/core';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppRoutingModule } from './/app-routing.module'; import { AppRoutingModule } from './app-routing.module';
import { ErrorLandingPageComponent } from './error-landing-page/error-landing-page.component'; import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
@NgModule({ @NgModule({
declarations: [ declarations: [
AppComponent, AppComponent,
ErrorLandingPageComponent PageNotFoundComponent
], ],
imports: [ imports: [
BrowserModule, BrowserModule,
......
<h1>404</h1>
<h3>The page you were looking for was not found</h3>
<h1>404</h1>
<h3>The page you were looking for was not found</h3>
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ErrorLandingPageComponent } from './error-landing-page.component'; import { PageNotFoundComponent } from './page-not-found.component';
describe('ErrorLandingPageComponent', () => { describe('PageNotFoundComponent', () => {
let component: ErrorLandingPageComponent; let component: PageNotFoundComponent;
let fixture: ComponentFixture<ErrorLandingPageComponent>; let fixture: ComponentFixture<PageNotFoundComponent>;
beforeEach(async(() => { beforeEach(async(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ ErrorLandingPageComponent ] declarations: [ PageNotFoundComponent ]
}) })
.compileComponents(); .compileComponents();
})); }));
beforeEach(() => { beforeEach(() => {
fixture = TestBed.createComponent(ErrorLandingPageComponent); fixture = TestBed.createComponent(PageNotFoundComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
fixture.detectChanges(); fixture.detectChanges();
}); });
......
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
@Component({ @Component({
selector: 'app-error-landing-page', selector: 'app-page-not-found',
templateUrl: './error-landing-page.component.html', templateUrl: './page-not-found.component.html',
styleUrls: ['./error-landing-page.component.scss'] styleUrls: ['./page-not-found.component.scss']
}) })
export class ErrorLandingPageComponent implements OnInit { export class PageNotFoundComponent implements OnInit {
constructor() { } constructor() { }
......
/* You can add global styles to this file, and also import other style files */
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment