If I have a component BaseComponent that looks like
<ng-container *ngTemplateOutlet="tpl"></ng-container>
And another component OtherComponent that passes a template into it
<base-component [tpl]="tpl">Some content for ng-content</base-component>
<ng-template #tpl>
<ng-content></ng-content>
<!-- How do I get access to ng-content passed to the base component instead of other component? -->
</ng-template>
Is it possible for me to get the ng-content that is passed into the component exposed to the template?
What I am trying to achieve is to define a template elsewhere in the application that has the ability to define where a component should project content into the template.
More on what I am trying to achieve can be seen in this question Use configurable templates in Angular and where I have gotten to in trying to solve that problem in this StackBlitz https://stackblitz.com/edit/angular-lj3x1f.