I was creating a routing, without children it was working fine, but when i added children then it generates an error, please look into code :
- {path:'', redirectTo:'/students', pathMatch:'full'},
- {
- path:'students',
- component:StudentsComponent,
- children:[
- {path:'',component:StudentStartComponent},
- {path:':id',component:StudentDetailComponent},
- {path:':id/edit',component:StudentEditComponent}
- {path:'new',component:StudentEditComponent},
- ]
- },
- {path:'subjects-list', component:SubjectsListComponent},

Mahesh VermaRank #475 · 5.2K reputationPosted Jul 5, 2018, 9:37 PM EDT
Manav PandyaRank #166 · 14.3K reputationPosted Jul 5, 2018, 9:24 PM EDT
Komal Sharma78 reputationPosted Jul 5, 2018, 9:33 PM EDT
Komal Sharma78 reputationPosted Jul 5, 2018, 9:45 PM EDT