0
考慮到與定製插座下面路由器鏈路輔助路線:導航到內部組件
<a [routerLink="[{outlets: {"playListOutletName", ["playlist-path"]}]"]
如何定位至該出口和URL的組件內部:
<button (click)=goToRoute()>
class MyComponent {
constructor(private router: Router){}
goToRoute(){
#TODO this.router.navigate[] ??
}
}
難道你試過這樣嗎? - 'this.router.navigate([{outlets:{「playListOutletName」:[「playlist-path」]}}]);'' – Sanket