Saturday, May 5, 2018

Navigate to a named router-outlet from the TypeScript side of a component in an Angular 4 application?

I am having some trouble getting this to work. Maybe navigate to a router-outlet named myOutlet with syntax not unlike the relativeTo trick like so:

this.router.navigate(['../', qux], {
   outlet: {myOutlet: 13}
});

 
 

The last bit of information above, the thirteen, is the endmost route chunk, the id.

No comments:

Post a Comment