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});
}
Como eu posso retornar ao ListaItensComponent após editar o item ??