![](/img/trans.png)
[英]How to apply css class to a component element when it's created by router-outlet?
[英]How to setup input bindings for a component when it's created by router-outlet?
當路由器創建組件時,如何設置屬性綁定?
不支持對路由器添加的組件使用綁定。 另請參閱此討論https://github.com/angular/angular/issues/4452
使用共享服務與路由器添加的組件進行通信。 有關詳細信息,請參見https://angular.io/docs/ts/latest/cookbook/component-communication.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.