Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to bind name to router-outlet

I'm trying to do something like

<router-outlet name='chart.id'></router-outlet>

where chart.id is something like "id1, id2, id3", etc. I would like to generate these at runtime because I do not know how many ids I will have.

I would like the end result to be like

<router-outlet name='id1'></router-outlet>
<router-outlet name='id2'></router-outlet>
<router-outlet name='id3'></router-outlet>

Thanks!

like image 727
Alex Tang Avatar asked Oct 22 '16 00:10

Alex Tang


1 Answers

You can't do it right now but it's a requested feature.

You can check it here

like image 66
Michał Pietraszko Avatar answered Nov 04 '22 18:11

Michał Pietraszko