通过router-outlet ng2传递对象

时间:2016-10-17 13:17:19

标签: javascript angular

如何从评论items中的app-component (root)工作中取出router-outlet个对象?

<div class="header">
  <app-header></app-header>
  <app-navbar [items]="items"></app-navbar>
</div>

<div class="container" >
  <router-outlet></router-outlet> <!-- <router-outlet [items]="items"></router-outlet> doesn't work-->
</div>
<app-footer></app-footer>

0 个答案:

没有答案