Skip to content
Snippets Groups Projects
Commit 4df3c877 authored by Heinrich Marks's avatar Heinrich Marks :hibiscus:
Browse files

add route to error-landing-page

parent 9545339b
No related merge requests found
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ErrorLandingPageComponent } from './error-landing-page/error-landing-page.component';
// import { GewünschstesModul } from './blabla/wunschmodul';
const routes: Routes = [
// { path: '', redirectTo: '/wumod', pathMatch: 'full' }, //default route
// { path: 'wumod', component: GewünschstesModul },
{ path: 'errorpage', component: ErrorLandingPageComponent }
];
......
......@@ -16,5 +16,10 @@
<li>
<h2><a target="_blank" rel="noopener" href="https://blog.angular.io/">Angular blog</a></h2>
</li>
<li>
<h2><a routerLink="/errorpage">Error Langing Page</a></h2>
</li>
</ul>
<router-outlet></router-outlet>
<p>
error-landing-page works!
</p>
<h1>404</h1>>
<h2>The page you were looking for was not found</h2>
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