Skip to content

:host styling doesn't work on root component #3402

@siggisim

Description

@siggisim

Angular applies an _nghost attribute to components and uses this for css shimming of the :host selector. See example:

<foo-component class="ng-binding" _ngcontent-khi-0="" _nghost-khi-1="">
</foo-component>

This does not seem to happen on the top level component in the angular application. See our root component with the selector 'root' does not contain the _nghost attribute:

<root></root>

I would expect components to behave the same regardless of whether they are the root component or a nested component.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions