Skip to content

ng-content select selector does not support :first-child, :last-child, :nth-child(), ... #50511

@Xriuk

Description

@Xriuk

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

No

Description

When using multi-slot content projection these selectors are not working:

  • :first-child
  • :last-child
  • :nth-child(x)

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-wmr4jp?file=src%2Fmain.ts

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions