Ákos Vandra-Meyer
Ákos Vandra-Meyer

Reputation: 2166

Angular: ViewEncapsulation vs wrapping SCSS

I find myself switching to ViewEncapsulation.None because I need to manipulate some child component's css, which does not seem possible with View encapsulation, as /deep/ was deprecated.

Are there any actual (performance perhaps?) drawbacks on using no ViewEncapsulation if my styles are manually scoped to the component? This seems to be able to manipulate the styles of child components correctly:


my-component {
  ... styles ...

  subcomponent {
    .gallery-item {
      cursor: pointer;
    }
  }
}

Upvotes: 1

Views: 289

Answers (0)

Related Questions