title: Angular2 Routing with child tree
body: <p>I'll start a new project in angular2 with typescript, but there are still some problems with routing:</p>
  
  <p>I have entities like this:</p>
  
  <ul>
  <li>entity id:1 <br>
  
  <ul>
  <li>child id:1 <br></li>
  <li>child id:2 <br></li>
  </ul></li>
  <li>entity id:2 <br>
  
  <ul>
  <li>child id:1 <br></li>
  <li>child id:2 <br></li>
  <li>child id:3 <br></li>
  </ul></li>
  <li>entity id:3 <br>
  
  <ul>
  <li>child id:1 <br></li>
  </ul></li>
  </ul>
  
  <p>now i'm trying to code the routing like this:</p>
  
  <p><i><code>@RouteConfig([ &lt;br&gt;
      {path: '/', component: EntityListComponent}, &lt;br&gt;
      {path: '/:id/...', name: 'Entity', component: EntityEditComponent}, &lt;br&gt;
      {path: '/:id/children', name: 'ChildList', component: ChildListComponent} &lt;br&gt;
      {path: '/:id/children/:childnumber', name: 'Child', component: ChildEditComponent}&lt;br&gt;
  ])</code><br>
  </i></p>
  
  <p>Of course, this will not work :-(.</p>
  
  <p>How can I get parameters from entity to children, or how can i exactly configure this routing?</p>
  
  <p>Thanks everybody,I hope you'll understand my problem.</p>