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 @@ +