簡體   English   中英

由路由器出口創建組件時如何設置組件的輸入綁定?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM