From d1604bfd884f7601b253775cf7f80a5135ed6acf Mon Sep 17 00:00:00 2001 From: Bangara Raju Kottedi Date: Thu, 2 May 2024 17:22:34 +0530 Subject: [PATCH] app route issue fix when matching route doesn't exist --- src/app/app-routing.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 65a6c0c..2293f74 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -11,7 +11,8 @@ const routes: Routes = [ { path: 'resume', component: ResumeComponent, title: "Bangara Raju - Resume" }, { path: 'projects', component: ProjectsComponent, title: "Bangara Raju - Projects" }, { path: 'weblog', component: BlogComponent, title: "Bangara Raju - Posts" }, - { path: 'contact', component: ContactComponent, title: "Bangara Raju - Contact" } + { path: 'contact', component: ContactComponent, title: "Bangara Raju - Contact" }, + { path: '**', redirectTo: ''} ]; @NgModule({