<ng-template #reuse>
<div>Hello World</div>
</ng-template>
<ng-container [ngTemplateOutlet]="reuse"></ng-container>
<ng-container [ngTemplateOutlet]="reuse">
<p>Good Morning</p>
</ng-container>
I would like to reuse the reuse template reference multiple times but with small modifications each time.
In the above example, in the 2nd <ng-container> I would also like to add an additional <p> tag after the <div> tag (in the <ng-template>). Is it possible to achieve that without creating another template?