From db0c1d51dce5f449c3b138691b11ba2b979450f8 Mon Sep 17 00:00:00 2001 From: Girish Sunkeri Date: Tue, 31 Oct 2017 12:46:36 +0530 Subject: [PATCH] added not found page --- src/app/app.routes.ts | 5 ++++- src/app/notfound.component.html | 1 + src/app/notfound.component.ts | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/app/notfound.component.html create mode 100644 src/app/notfound.component.ts diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index fbfd118..f46e644 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,6 +1,9 @@ import { Routes } from '@angular/router'; +import { NotFoundComponent } from './notfound.component'; export const routes: Routes = [ { path: '', loadChildren: './home/home.module#HomeModule'}, - { path: 'category', loadChildren: './category/category.module#CategoryModule'} + { path: 'category', loadChildren: './category/category.module#CategoryModule'}, + { path: 'not_found', component: NotFoundComponent }, + { path: "**", redirectTo: "not_found" } ]; diff --git a/src/app/notfound.component.html b/src/app/notfound.component.html new file mode 100644 index 0000000..2e995e4 --- /dev/null +++ b/src/app/notfound.component.html @@ -0,0 +1 @@ +

File not found

\ No newline at end of file diff --git a/src/app/notfound.component.ts b/src/app/notfound.component.ts new file mode 100644 index 0000000..d7c070d --- /dev/null +++ b/src/app/notfound.component.ts @@ -0,0 +1,6 @@ +import { Component } from '@angular/core'; + +@Component({ + templateUrl: './notfound.component.html', +}) +export class NotFoundComponent {}