How does Angular6 get the subcomponents and copy or delete them?

< H2 > problem scenario < / H2 > The child component is referenced in the

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?

< H2 > try the solution < / H2 >

I want to get a reference to a child component through viewChild and create a component factory through ng-container . What should I do?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34c25-2b488.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34c25-2b488.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?