To apply styles scoped to a particular component and prevent them from affecting other elements outside the component, you would use _____.

  • ::ng-deep
  • ViewEncapsulation.Emulated
  • ViewEncapsulation.None
  • ng-deep
To apply styles scoped to a particular component in Angular and prevent them from leaking out and affecting other elements, you would use the ::ng-deep selector. This is used to pierce through the view encapsulation and apply styles to specific components.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *