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
Branches
Tags
1 merge request!5Resolve "App Routing Component"
import { NgModule } from '@angular/core';
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 = [
{ path: 'errorpage', component: ErrorLandingPageComponent }
{ path: 'errorpage', component: PageNotFoundComponent }
];
......
......@@ -4,14 +4,14 @@ import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppRoutingModule } from './/app-routing.module';
import { ErrorLandingPageComponent } from './error-landing-page/error-landing-page.component';
import { AppRoutingModule } from './app-routing.module';
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
@NgModule({
declarations: [
AppComponent,
ErrorLandingPageComponent
PageNotFoundComponent
],
imports: [
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 { ErrorLandingPageComponent } from './error-landing-page.component';
import { PageNotFoundComponent } from './page-not-found.component';
describe('ErrorLandingPageComponent', () => {
let component: ErrorLandingPageComponent;
let fixture: ComponentFixture<ErrorLandingPageComponent>;
describe('PageNotFoundComponent', () => {
let component: PageNotFoundComponent;
let fixture: ComponentFixture<PageNotFoundComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ErrorLandingPageComponent ]
declarations: [ PageNotFoundComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ErrorLandingPageComponent);
fixture = TestBed.createComponent(PageNotFoundComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
......
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-error-landing-page',
templateUrl: './error-landing-page.component.html',
styleUrls: ['./error-landing-page.component.scss']
selector: 'app-page-not-found',
templateUrl: './page-not-found.component.html',
styleUrls: ['./page-not-found.component.scss']
})
export class ErrorLandingPageComponent implements OnInit {
export class PageNotFoundComponent implements OnInit {
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