Sibling components in Angular 2 router.

238 views
Skip to first unread message

Максим

unread,
Nov 24, 2015, 11:52:39 AM11/24/15
to AngularJS
Hi! I have a question about new router in Angular 2.

Does angular 2 support sibling outlets?

For example I have the following template of the component:

<router-outlet name="widgets"></router-outlet>
<router-outlet name="desktop"></router-outlet>

And want to bind specific component to each outlet for the same route for example by opening '/main' URL component should fill outlets with WidgetsComponent and DesktopComponent accordingly.

How can I do that?

Thanks!


Carsten Lüning

unread,
Feb 5, 2016, 8:45:02 AM2/5/16
to AngularJS
Hi,

did you found anything on this topic?

Erhard Karger

unread,
Feb 18, 2016, 6:49:11 AM2/18/16
to AngularJS
Hello,


Same problem more components one one page.
Any solution found ?

regards Erhard
Reply all
Reply to author
Forward
0 new messages