feat: add not found component (#327)

Fixes #110
This commit is contained in:
Jonathan Xu
2018-11-18 14:46:43 +05:30
committed by Abhay Chawla
parent dffce8a5e0
commit 2feee9d8a2
9 changed files with 197 additions and 51 deletions
+4 -2
View File
@@ -2,14 +2,16 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
// Not Found Component
import {NotFoundComponent} from './not-found/not-found.component';
/**
* Fallback to this route when no prior route is matched.
*/
const routes: Routes = [
{
path: '**',
redirectTo: '',
pathMatch: 'full'
component: NotFoundComponent
}
];