Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • For me, this creates the result of "[__ngcontent-c3] elementA[__ngcontent-c3] { /*style here */ }", which just has the same result as if I had just put "elementA{ /*style here*/ }". How can I create the result of "[__ngcontent-c3] elementA { /*style here*/ }"? Commented Mar 31, 2017 at 18:51
  • 1
    looks like the other answer is what you are looking for Commented Mar 31, 2017 at 20:35
  • I had read elsewhere that the /deep/ operator was being depreciated, but I don't actually see anything about that in the angular docs, so looks like that should do it for me, thanks. Commented Apr 1, 2017 at 16:54
  • 1
    It's deprecated in Chrome, other browsers never supported it. Angular emulates it and doesn't depend on browser support, but it only works in ViewEncapsulation.Emulated (default) Commented Apr 1, 2017 at 17:07