What does 'View Encapsulation' in Angular control?

  • Code optimization
  • Data encapsulation
  • Routing configuration
  • Styling scoping
'View Encapsulation' in Angular controls the scoping of styles for a component. It determines whether the styles defined in a component's styleUrls or inline styles are scoped to that component only or affect the entire application. It helps prevent style leakage and conflicts.
Add your answer
Loading...

Leave a comment

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