我有以下内容的Url: http://localhost:4200/realms/111/(realmOutlet:groups)
我想在共享组件中单击按钮时仅更新111到222。 realmOutlet可能因其他页面而异。请建议我如何实现这条路线。我粘贴了以下项目中使用的路线:
{
path: 'realms/:id',
component: RealmsComponent,
canActivate: [AuthGuard],
children: [
{
path: 'groups',
component: GroupsComponent,
outlet: 'realmOutlet'
},
{
path: 'group/:id',
component: GroupComponent,
outlet: 'realmOutlet'
},
{
path: 'members',
component: MembersComponent,
outlet: 'realmOutlet'
},
{
path: 'member/:id',
component: MemberComponent,
outlet: 'realmOutlet'
},
{
path: 'invites',
component: InvitationsComponent,
outlet: 'realmOutlet'
}
]
}