X Tutup
Skip to content

Content projection: prioritize ng-content projection by selector specifity #4598

@tbosch

Description

@tbosch

E.g.

<ng-content select="[item]"></ng-content>
<ng-content></ng-content>
<ng-content select="a[item]"></ng-content>

Here, we would first find nodes that fit the a[item] selector.
Then we would use the remaining nodes and filter out the ones that match [item] selector.
And only the nodes that don't match any other selector would go into the <ng-content> without a selector.

With this, projection is independent of the order of <ng-content> elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort2: daysfeatureLabel used to distinguish feature request from other issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup