Skip to content

ViewEncapsulation not working on nested components with ng-content #7400

@fxck

Description

@fxck

I'm not actually sure what is causing the problem, but I have two components

  • list-cmp
    • list-item-cmp

both have only ng-content inside them, and I'm using it like this

    <list-cmp>
      <list-item-cmp>
        <a href="">whatever</a>
      </list-item-cmp>
    </list-cmp>

when I try to style the anchor with styles on list-item-cmp, it doesn't work

image

http://plnkr.co/edit/tdIIXsb2QA7oAlJIFXg1?p=preview

is it a bug, is it by design?

Metadata

Metadata

Assignees

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