Angular: How to inject child component class by ID via ViewChild

my_component_markup.html
<app-my-component #myId></app-dynamic-plot>
example.ts
@ViewChild('myid', {read: MyComponent}) myComponent!: MyComponent;

 


Check out similar posts by category: Angular