When ViewEncapsulation.Native is used, the styling is encapsulated using the browser's native ________.

  • CSS-in-JS
  • Inline styles
  • Scoped CSS
  • Shadow DOM
When ViewEncapsulation.Native is used, the styling is encapsulated using the browser's native Shadow DOM. Shadow DOM is a web standard that provides encapsulation of styles and markup, ensuring that styles in one component do not affect styles in another. It's a key feature in achieving component-based styling in Angular.
Add your answer
Loading...

Leave a comment

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