Angular:如何通过 ViewChild 按 ID 注入子组件类
my_component_markup.html
<app-my-component #myId></app-dynamic-plot>viewchild_inject.ts
@ViewChild('myid', {read: MyComponent}) myComponent!: MyComponent;Check out similar posts by category:
Angular
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow