parent component, as follows:
app.html
<app-parent>
<app-child></app-child>
</app-parent>
I want to get the parent
component or child
component in app.component.ts
, and copy or delete the component. What should I do?
I want to get a reference to a child component through viewChild
and create a component factory through ng-container
. What should I do?