如何在路由器插座创建组件时设置组件的输入绑定?

时间:2016-01-07 05:26:02

标签: angular angular2-routing

当路由器创建组件时,如何设置属性绑定?

1 个答案:

答案 0 :(得分:5)

不支持对路由器添加的组件使用绑定。 另见此讨论https://github.com/angular/angular/issues/4452

使用共享服务与路由器添加的组件进行通信。 有关详细信息,请参阅https://angular.io/docs/ts/latest/cookbook/component-communication.html