In my project, I am incorporating the use of primeng TurboTable which utilizes a pTemplate directive for templates. I am attempting to replicate this approach in order to create a reusable (DUMB) component. Despite my efforts to find a solution, I have not been successful thus far. One idea I had was to use an ng-container, but when attempting to pass an ng-template from a Smart component to a child component, nothing happens. Please see below for a sample of the solution I attempted:
Smart Component Template
<dumb-component>
<ng-template #content> Content is placed here .... </ng-template>
</dumb-component>
Dumb Component Template
<ng-container *ngTemplateOutlet="content">
</ng-container>
For more information, you can refer to the primeng documentation here: primeng docs