how to navigate from sibling component to another sibling component in Angular?
问题 Below is my app.routing.ts export const Approute: Routes = [ { path: 'login', component: LoginComponent }, { path: 'home', component: HomeComponent, children: [ { path: 'dashboard', component: DashboardComponent }, { path: 'trip-details', component: TripDetailsComponent } ] }, { path: 'not-found', component : NotFoundComponent }, { path: '**', redirectTo: '/not-found' } ]; component.ts viewDetails(details) { ... this.route.navigate(['../trip-details']); } Above i have a component and am