2
const itemRoutes: Routes = [
{
path: '', component: ItensComponent,
children: [
{ path: '', redirectTo: 'lista', pathMatch: 'full' },
{ path: 'lista', component: ListaItensComponent },
{ path: 'novo', component: NovoItemComponent },
{ path: 'edita/:id', component: EditaItemComponent }
]
}
];
Listaitenscomponent
editaItem(id: string) {
this.router.navigate(['../edita', id], {relativeTo: this.route});
}
How can I return to the Listitenscomponent after editing the item ??