Hi Sébastien,
Greetings from Syncfusion support.
We cannot use nested ng-template in angular. But we can achieve your requirement with ng-container by using ng-template reference in ngTemplateOutlet attribute. Please refer the code example is given below,
Code example:
<ejs-splitter>
<e-panes>
<e-pane size='50%' min='60px'>
<ng-template #content>
<ng-container *ngTemplateOutlet="nestedContent"></ng-container>
</ng-template>
</e-pane>
</e-panes>
</ejs-splitter>
<ng-template #nestedContent>
<ejs-splitter>
<e-panes>
<e-pane size='25%' min='60px'>
<ng-template #content>
<div>Left pane</div>
</ng-template>
</e-pane>
<e-pane size='50%' min='60px'>
<ng-template #content>
<div>Center pane</div>
</ng-template>
</e-pane>
</ejs-splitter>
</ng-template> |
To know more about nested ng-template please refer in the below link,
Regards,
Narayanasamy P.