标签: angular angular2-routing
当路由器创建组件时,如何设置属性绑定?
答案 0 :(得分:5)
不支持对路由器添加的组件使用绑定。 另见此讨论https://github.com/angular/angular/issues/4452
使用共享服务与路由器添加的组件进行通信。 有关详细信息,请参阅https://angular.io/docs/ts/latest/cookbook/component-communication.html