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