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