-
Notifications
You must be signed in to change notification settings - Fork 504
Description
Describe the bug
Angular's content projection with selectors (e.g. <ng-content select="[additionalSearchOptions]") in themed components is not working properly. Instead of projecting different elements in different content outlets, it projects all of them into the last (or default) ng-content found.
To Reproduce
Steps to reproduce the behavior:
- Use content projection in a themed component, for example you can use this template into the
my-dspace-pagecomponent:
<ds-search
[configuration]="configuration"
[configurationList]="(configurationList$ | async)"
[context]="context"
[viewModeList]="viewModeList">
<p additionalSearchOptions>additionalSearchOptions</p>
<p searchContentTop>searchContentTop</p>
</ds-search>
- You will see that all the content will be projected in the same
ng-contentoutlet, i.e. the lastng-contentchild of theds-searchcomponent.
Expected behavior
Each element should be projected in the correct ng-content outlet.
Metadata
Metadata
Assignees
Type
Projects
Status
🏗 In Progress