79501414

Date: 2025-03-11 16:16:46
Score: 3
Natty:
Report link

Setting encapsulation=View.Encapsulation.None in the @Component header will also do the trick. It basically does what the ::ng-deep does, but for the whole SCSS file.

I prefer this over adding to the global, because that way is not as organized in terms of referencing things.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Component
  • Low reputation (1):
Posted by: Craig Warford