Answers for "core.js:15724 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'update"

0

core.js:15724 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'update

const routes: Routes = [
  {path:"", redirectTo:"/home", pathMatch:"full"},
  {path:"home", component:HomeComponent},
  {path:"add", component:AddComponent},
  {path:"edit/:id", component:EditComponent},
  {path:"show/:id", component:ShowComponent}
];
@NgModule({
  imports: [

    CommonModule,
    RouterModule.forRoot(routes)
  ],
  exports: [RouterModule],
  declarations: []
})
export class AppRoutingModule { }
Posted by: Guest on July-14-2021

Code answers related to "core.js:15724 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'update"

Browse Popular Code Answers by Language