1
0

38248: Added PageNotFound component

This commit is contained in:
Lotte Hofstede
2017-01-12 15:18:15 +01:00
parent 8cd58f8243
commit 82a379df3c
4 changed files with 16 additions and 5 deletions

View File

@@ -1,10 +1,12 @@
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { PageNotFoundComponent } from './pagenotfound/pagenotfound.component';
@NgModule({
imports: [
RouterModule.forChild([
{ path: '', redirectTo: '/home', pathMatch: 'full' }
{ path: '', redirectTo: '/home', pathMatch: 'full' },
{ path: '**', pathMatch: 'full', component: PageNotFoundComponent},
])
],
})