标签: javascript html angular typescript
我有这种设计:
ParentComponent [child-1[child-1-1 [child-1-1-1]]]
child-1-1-1有一个列表,其中单击单元格应打开与DetailComponent
child-1-1-1
DetailComponent
ParentComponent
同样重要DetailComponent需要初始化从child-1-1-1传递的字符串ID
我无法使用@input或@viewchild,这会增加组件间通信的复杂性
@input
@viewchild
我该怎么做?