【发布时间】:2022-07-21 16:06:27
【问题描述】:
我有一个关于角度子组件和父组件的问题。
我的想法是:
Parent component:
<parent-component>
<child-component1 ngFor= let car of cars>
<child-component2></child-component2>
</child-component1>
</parent-component>
所以看起来像父组件,在子组件 1 中,我可以为子组件 2 定义一个占位符吗?
如:
child component 1
<child-component1 ngFor= let car of cars>
hier ist place holder
</child-component1>
如您所见,在使用 ngfor 的子组件中,我想将 car 放入子组件 2。 任何解决方案?
多谢
标签: angular components ngrx