如何从评论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>