I am facing a specific issue where I need to pass code from a file containing a component to its child component. My initial approach was to use ng-content, but unfortunately, this method did not work as expected. I am unsure if the ng-content usage is incorrect or if there is an issue with passing the information to the selects.
I would like to outline my intended logic and seek assistance in identifying any potential errors or alternative solutions.
file1.html:
<father-component>
<div content1>
<div contentChild1 *ngIf="condition"></div>
<div contentChild2 *ngIf="condition2"></div>
</div>
</father-component>
father-component.html:
<son>
<ng-content select="[content1]"
</son>
son.html
<div select="[contentChild1]" *ngIf="condition3"></div>
<div select="[contentChild2]" *ngIf="condition4"></div>
Thank you for your attention and best regards!