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 }
]
}
];
ListComponent
editaItem(id: string) {
this.router.navigate(['../edita', id], {relativeTo: this.route});
}
How can I return to ListItemsComponent after editing the item ??