参见这里
 
总结如下:
@Input和@Ouptut
获取父实例,获取子实例
通过service共享数据
发送事件EventEmitter(个人喜欢angular-event-service)
rxjs的Observable(智商不够,觉得用起来不够傻瓜化)

 

相关文章: